From c33c2f593151becfc19c8fb4bc73feab13fe0e49 Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Thu, 15 Jul 2021 14:00:53 +0000 Subject: [PATCH] Merge branch 'feature/fix-tests' of github.com:usetech-llc/nft_private into feature/fix-tests --- --- 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' }, --- 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; }); --- a/tests/src/setVariableOnChainSchema.test.ts +++ b/tests/src/setVariableOnChainSchema.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 setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema); await submitTransactionAsync(Alice, setSchema); }); @@ -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 setSchema = api.tx.nft.setVariableOnChainSchema(collectionId, Schema); await expect(submitTransactionExpectFailAsync(Bob, setSchema)).to.be.rejected; }); -- gitstuff