From 0d9468ba7c38a8f229215741fe829093361cc189 Mon Sep 17 00:00:00 2001 From: Andrey Kuznetsov Date: Wed, 22 Jun 2022 07:58:56 +0000 Subject: [PATCH] Fix missed awaits --- --- 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$/); }); }); -- gitstuff