difftreelog
test cleanup debug logs
in: master
2 files changed
tests/src/contracts.test.tsdiffbeforeafterboth64 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 // Transfer70 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();767477 // tslint:disable-next-line:no-unused-expression75 // tslint:disable-next-line:no-unused-expression78 expect(result.success).to.be.true;76 expect(result.success).to.be.true;tests/src/removeCollectionAdmin.test.tsdiffbeforeafterboth26 await submitTransactionAsync(Alice, addAdminTx);26 await submitTransactionAsync(Alice, addAdminTx);272728 const adminListAfterAddAdmin: any = (await api.query.nft.adminList(collectionId)).toJSON();28 const adminListAfterAddAdmin: any = (await api.query.nft.adminList(collectionId)).toJSON();29 console.log(adminListAfterAddAdmin);30 expect(adminListAfterAddAdmin).to.be.deep.contains(normalizeAccountId(Bob.address));29 expect(adminListAfterAddAdmin).to.be.deep.contains(normalizeAccountId(Bob.address));313032 // then remove bob from admins of collection31 // then remove bob from admins of collection