git.delta.rocks / unique-network / refs/commits / 5af2b45e48fe

difftreelog

Tests cleanup

Greg Zaitsev2021-07-14parent: #2fc9e2d.patch.diff
in: master

3 files changed

modifiedtests/src/pallet-presence.test.tsdiffbeforeafterboth
42 'auraext'42 'auraext'
43];43];
4444
45describe.only('Pallet presence', () => {45describe('Pallet presence', () => {
46 it('Required pallets are present', async () => {46 it('Required pallets are present', async () => {
47 await usingApi(async api => {47 await usingApi(async api => {
48 for (let i=0; i<requiredPallets.length; i++) {48 for (let i=0; i<requiredPallets.length; i++) {
modifiedtests/src/removeCollectionAdmin.test.tsdiffbeforeafterboth
--- a/tests/src/removeCollectionAdmin.test.ts
+++ b/tests/src/removeCollectionAdmin.test.ts
@@ -20,7 +20,7 @@
       const Alice = privateKey('//Alice');
       const Bob = privateKey('//Bob');
       const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();
-      expect(collection.Owner).to.be.deep.eq(normalizeAccountId(Alice.address));
+      expect(collection.Owner).to.be.deep.eq(Alice.address);
       // first - add collection admin Bob
       const addAdminTx = api.tx.nft.addCollectionAdmin(collectionId, normalizeAccountId(Bob.address));
       await submitTransactionAsync(Alice, addAdminTx);
modifiedtests/src/removeCollectionSponsor.test.tsdiffbeforeafterboth
--- a/tests/src/removeCollectionSponsor.test.ts
+++ b/tests/src/removeCollectionSponsor.test.ts
@@ -28,7 +28,7 @@
 let alice: IKeyringPair;
 let bob: IKeyringPair;
 
-describe('integration test: ext. removeCollectionSponsor():', () => {
+describe.only('integration test: ext. removeCollectionSponsor():', () => {
 
   before(async () => {
     await usingApi(async () => {
@@ -38,7 +38,7 @@
     });
   });
 
-  it('Remove NFT collection sponsor stops sponsorship', async () => {
+  it('Removing NFT collection sponsor stops sponsorship', async () => {
     const collectionId = await createCollectionExpectSuccess();
     await setCollectionSponsorExpectSuccess(collectionId, bob.address);
     await confirmSponsorshipExpectSuccess(collectionId, '//Bob');
@@ -85,7 +85,7 @@
 
 });
 
-describe('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {
+describe.only('(!negative test!) integration test: ext. removeCollectionSponsor():', () => {
   before(async () => {
     await usingApi(async () => {
       const keyring = new Keyring({ type: 'sr25519' });