difftreelog
Fix missed awaits
in: master
2 files changed
tests/src/createItem.test.tsdiffbeforeafterboth158158159 const newCollectionID = await createCollectionWithPropsExpectSuccess();159 const newCollectionID = await createCollectionWithPropsExpectSuccess();160 160 161 createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', prps);161 await createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', prps);162 });162 });163 });163 });164164165 it('Trying to add bigger property than allowed', async () => {165 it('Trying to add bigger property than allowed', async () => {166 await usingApi(async () => {166 await usingApi(async () => {167 const newCollectionID = await createCollectionWithPropsExpectSuccess();167 const newCollectionID = await createCollectionWithPropsExpectSuccess();168 168 169 createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', [{key: 'k', value: 'vvvvvv'.repeat(5000)}, {key: 'k2', value: 'vvv'.repeat(5000)}]);169 await createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', [{key: 'k', value: 'vvvvvv'.repeat(5000)}, {key: 'k2', value: 'vvv'.repeat(5000)}]);170 });170 });171 });171 });172});172});tests/src/nesting/unnest.test.tsdiffbeforeafterboth153153154 // Create a nested token ouroboros154 // Create a nested token ouroboros155 const nestedToken = await createItemExpectSuccess(alice, collection, 'NFT', {Ethereum: tokenIdToAddress(collection, targetToken)});155 const nestedToken = await createItemExpectSuccess(alice, collection, 'NFT', {Ethereum: tokenIdToAddress(collection, targetToken)});156 expect(transferExpectSuccess(collection, targetToken, alice, {Ethereum: tokenIdToAddress(collection, nestedToken)})).to.be.rejectedWith(/^structure\.OuroborosDetected$/);156 await expect(transferExpectSuccess(collection, targetToken, alice, {Ethereum: tokenIdToAddress(collection, nestedToken)})).to.be.rejectedWith(/^structure\.OuroborosDetected$/);157 });157 });158});158});159159