--- a/tests/src/createItem.test.ts +++ b/tests/src/createItem.test.ts @@ -158,7 +158,7 @@ const newCollectionID = await createCollectionWithPropsExpectSuccess(); - createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', prps); + await createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', prps); }); }); @@ -166,7 +166,7 @@ await usingApi(async () => { const newCollectionID = await createCollectionWithPropsExpectSuccess(); - createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', [{key: 'k', value: 'vvvvvv'.repeat(5000)}, {key: 'k2', value: 'vvv'.repeat(5000)}]); + await createItemWithPropsExpectFailure(alice, newCollectionID, 'NFT', [{key: 'k', value: 'vvvvvv'.repeat(5000)}, {key: 'k2', value: 'vvv'.repeat(5000)}]); }); }); }); --- a/tests/src/nesting/unnest.test.ts +++ b/tests/src/nesting/unnest.test.ts @@ -153,6 +153,6 @@ // Create a nested token ouroboros const nestedToken = await createItemExpectSuccess(alice, collection, 'NFT', {Ethereum: tokenIdToAddress(collection, targetToken)}); - expect(transferExpectSuccess(collection, targetToken, alice, {Ethereum: tokenIdToAddress(collection, nestedToken)})).to.be.rejectedWith(/^structure\.OuroborosDetected$/); + await expect(transferExpectSuccess(collection, targetToken, alice, {Ethereum: tokenIdToAddress(collection, nestedToken)})).to.be.rejectedWith(/^structure\.OuroborosDetected$/); }); });