git.delta.rocks / unique-network / refs/commits / 14cafc128827

difftreelog

test cleanup debug logs

Yaroslav Bolyukin2021-05-14parent: #dfe7fa5.patch.diff
in: master

2 files changed

modifiedtests/src/contracts.test.tsdiffbeforeafterboth
64 const collectionId = await createCollectionExpectSuccess();64 const collectionId = await createCollectionExpectSuccess();
65 const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT');65 const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT');
66 const [contract, deployer] = await deployTransferContract(api);66 const [contract, deployer] = await deployTransferContract(api);
67 const tokenBefore: any = (await api.query.nft.nftItemList(collectionId, tokenId) as any).unwrap();67 const tokenBefore: any = (await api.query.nft.nftItemList(collectionId, tokenId) as any).toJSON();
68 68
69 // Transfer69 // Transfer
70 console.log('transfer using contract');
71 const transferTx = contract.tx.transfer(value, gasLimit, bob.address, collectionId, tokenId, 1);70 const transferTx = contract.tx.transfer(value, gasLimit, bob.address, collectionId, tokenId, 1);
72 const events = await submitTransactionAsync(alice, transferTx);71 const events = await submitTransactionAsync(alice, transferTx);
73 console.log('done');
74 const result = getGenericResult(events);72 const result = getGenericResult(events);
75 const tokenAfter: any = (await api.query.nft.nftItemList(collectionId, tokenId) as any).unwrap();73 const tokenAfter: any = (await api.query.nft.nftItemList(collectionId, tokenId) as any).toJSON();
7674
77 // tslint:disable-next-line:no-unused-expression75 // tslint:disable-next-line:no-unused-expression
78 expect(result.success).to.be.true;76 expect(result.success).to.be.true;
modifiedtests/src/removeCollectionAdmin.test.tsdiffbeforeafterboth
--- a/tests/src/removeCollectionAdmin.test.ts
+++ b/tests/src/removeCollectionAdmin.test.ts
@@ -26,7 +26,6 @@
       await submitTransactionAsync(Alice, addAdminTx);
 
       const adminListAfterAddAdmin: any = (await api.query.nft.adminList(collectionId)).toJSON();
-      console.log(adminListAfterAddAdmin);
       expect(adminListAfterAddAdmin).to.be.deep.contains(normalizeAccountId(Bob.address));
 
       // then remove bob from admins of collection