git.delta.rocks / unique-network / refs/commits / c33c2f593151

difftreelog

Merge branch 'feature/fix-tests' of github.com:usetech-llc/nft_private into feature/fix-tests

Greg Zaitsev2021-07-15parents: #dbfc408 #29efb9d.patch.diff
in: master

3 files changed

modifiedtests/src/eth/nonFungible.test.tsdiffbeforeafterboth
--- a/tests/src/eth/nonFungible.test.ts
+++ b/tests/src/eth/nonFungible.test.ts
@@ -61,7 +61,7 @@
   });
 });
 
-describe.only('Plain calls', () => {
+describe('Plain calls', () => {
   itWeb3('Can perform approve()', async ({ web3, api }) => {
     const collection = await createCollectionExpectSuccess({
       mode: { type: 'NFT' },
modifiedtests/src/setConstOnChainSchema.test.tsdiffbeforeafterboth
--- a/tests/src/setConstOnChainSchema.test.ts
+++ b/tests/src/setConstOnChainSchema.test.ts
@@ -38,7 +38,7 @@
     await usingApi(async (api) => {
       const collectionId = await createCollectionExpectSuccess();
       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.eq(Alice.address);
       const setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);
       await submitTransactionAsync(Alice, setShema);
     });
@@ -88,7 +88,7 @@
     await usingApi(async (api) => {
       const collectionId = await createCollectionExpectSuccess();
       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.eq(Alice.address);
       const setShema = api.tx.nft.setConstOnChainSchema(collectionId, Shema);
       await expect(submitTransactionExpectFailAsync(Bob, setShema)).to.be.rejected;
     });
modifiedtests/src/setVariableOnChainSchema.test.tsdiffbeforeafterboth
38 await usingApi(async (api) => {38 await usingApi(async (api) => {
39 const collectionId = await createCollectionExpectSuccess();39 const collectionId = await createCollectionExpectSuccess();
40 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();40 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();
41 expect(collection.Owner).to.be.deep.eq(normalizeAccountId(Alice.address));41 expect(collection.Owner).to.be.eq(Alice.address);
42 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);42 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);
43 await submitTransactionAsync(Alice, setSchema);43 await submitTransactionAsync(Alice, setSchema);
44 });44 });
88 await usingApi(async (api) => {88 await usingApi(async (api) => {
89 const collectionId = await createCollectionExpectSuccess();89 const collectionId = await createCollectionExpectSuccess();
90 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();90 const collection: any = (await api.query.nft.collectionById(collectionId)).toJSON();
91 expect(collection.Owner).to.be.deep.eq(normalizeAccountId(Alice.address));91 expect(collection.Owner).to.be.eq(Alice.address);
92 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);92 const setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema);
93 await expect(submitTransactionExpectFailAsync(Bob, setSchema)).to.be.rejected;93 await expect(submitTransactionExpectFailAsync(Bob, setSchema)).to.be.rejected;
94 });94 });