difftreelog
CORE-412 Add collection mode checking into tests.
in: master
2 files changed
tests/src/eth/createNFTCollection.test.tsdiffbeforeafterboth47 expect(collection.name.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(collectionName);47 expect(collection.name.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(collectionName);48 expect(collection.description.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(description);48 expect(collection.description.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(description);49 expect(collection.tokenPrefix.toHuman()).to.be.eq(tokenPrefix);49 expect(collection.tokenPrefix.toHuman()).to.be.eq(tokenPrefix);50 expect(collection.mode.isNft).to.be.true;50 });51 });515252 itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => {53 itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => {tests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth47 expect(collection.name.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(collectionName);47 expect(collection.name.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(collectionName);48 expect(collection.description.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(description);48 expect(collection.description.map(v => String.fromCharCode(v.toNumber())).join('')).to.be.eq(description);49 expect(collection.tokenPrefix.toHuman()).to.be.eq(tokenPrefix);49 expect(collection.tokenPrefix.toHuman()).to.be.eq(tokenPrefix);50 expect(collection.mode.isReFungible).to.be.true;50 });51 });515252 itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => {53 itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => {