From 870ccb839806a9325f4248daa9798022775fc188 Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Wed, 22 Jun 2022 13:37:42 +0000 Subject: [PATCH] CORE-412 Add collection mode checking into tests. --- --- a/tests/src/eth/createNFTCollection.test.ts +++ b/tests/src/eth/createNFTCollection.test.ts @@ -47,6 +47,7 @@ expect(collection.name.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(collectionName); expect(collection.description.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(description); expect(collection.tokenPrefix.toHuman()).to.be.eq(tokenPrefix); + expect(collection.mode.isNft).to.be.true; }); itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => { --- a/tests/src/eth/createRFTCollection.test.ts +++ b/tests/src/eth/createRFTCollection.test.ts @@ -47,6 +47,7 @@ expect(collection.name.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(collectionName); expect(collection.description.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(description); expect(collection.tokenPrefix.toHuman()).to.be.eq(tokenPrefix); + expect(collection.mode.isReFungible).to.be.true; }); itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => { -- gitstuff