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

difftreelog

Merge branch 'develop' into feature/NFTPAR-236_burn_item

Greg Zaitsev2021-01-14parents: #91a71ac #aa3aa05.patch.diff
in: master

3 files changed

modifiedtests/package.jsondiffbeforeafterboth
20 "load": "mocha --timeout 9999999 -r ts-node/register ./**/*.load.ts",20 "load": "mocha --timeout 9999999 -r ts-node/register ./**/*.load.ts",
21 "testSetSchemaVersion": "mocha --timeout 9999999 -r ts-node/register ./**/setSchemaVersion.test.ts",21 "testSetSchemaVersion": "mocha --timeout 9999999 -r ts-node/register ./**/setSchemaVersion.test.ts",
22 "testSetCollectionLimits": "mocha --timeout 9999999 -r ts-node/register ./**/setCollectionLimits.test.ts",22 "testSetCollectionLimits": "mocha --timeout 9999999 -r ts-node/register ./**/setCollectionLimits.test.ts",
23 "testRemoveCollectionAdmin": "mocha --timeout 9999999 -r ts-node/register ./**/removeCollectionAdmin.test.ts",
23 "testConnection": "mocha --timeout 9999999 -r ts-node/register ./**/connection.test.ts",24 "testConnection": "mocha --timeout 9999999 -r ts-node/register ./**/connection.test.ts",
24 "testCollection": "mocha --timeout 9999999 -r ts-node/register ./**/createCollection.test.ts"25 "testCollection": "mocha --timeout 9999999 -r ts-node/register ./**/createCollection.test.ts"
25 },26 },
addedtests/src/removeCollectionAdmin.test.tsdiffbeforeafterboth

no changes

modifiedtests/src/setSchemaVersion.test.tsdiffbeforeafterboth
93 const nonExistedCollectionId = collectionCount + 1;93 const nonExistedCollectionId = collectionCount + 1;
94 tx = api.tx.nft.setSchemaVersion(nonExistedCollectionId, 'ImageURL');94 tx = api.tx.nft.setSchemaVersion(nonExistedCollectionId, 'ImageURL');
95 await expect(submitTransactionExpectFailAsync(alice, tx)).to.be.rejected;95 await expect(submitTransactionExpectFailAsync(alice, tx)).to.be.rejected;
96 /*try {
97 await submitTransactionAsync(alice, tx);
98 } catch (e) {
99 // tslint:disable-next-line:no-unused-expression
100 expect(e).to.be.exist;
101 }*/
102 });96 });
103 });97 });
10498
119 await destroyCollectionExpectSuccess(collectionIdForTesting);113 await destroyCollectionExpectSuccess(collectionIdForTesting);
120 tx = api.tx.nft.setSchemaVersion(collectionIdForTesting, 'ImageURL');114 tx = api.tx.nft.setSchemaVersion(collectionIdForTesting, 'ImageURL');
121 await expect(submitTransactionExpectFailAsync(alice, tx)).to.be.rejected;115 await expect(submitTransactionExpectFailAsync(alice, tx)).to.be.rejected;
122 /*try {
123 tx = api.tx.nft.setSchemaVersion(collectionIdForTesting, 'ImageURL');
124 await submitTransactionAsync(alice, tx);
125 } catch (e) {
126 // tslint:disable-next-line:no-unused-expression
127 expect(e).to.be.exist;
128 }*/
129 });116 });
130 });117 });
131});118});