git.delta.rocks / unique-network / refs/commits / 870ccb839806

difftreelog

CORE-412 Add collection mode checking into tests.

Trubnikov Sergey2022-06-22parent: #9629e4b.patch.diff
in: master

2 files changed

modifiedtests/src/eth/createNFTCollection.test.tsdiffbeforeafterboth
--- 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}) => {
modifiedtests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth
47 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 });
5152
52 itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => {53 itWeb3('Check collection address exist', async ({api, web3, privateKeyWrapper}) => {