git.delta.rocks / unique-network / refs/commits / 0d9468ba7c38

difftreelog

Fix missed awaits

Andrey Kuznetsov2022-06-22parent: #a0ead21.patch.diff
in: master

2 files changed

modifiedtests/src/createItem.test.tsdiffbeforeafterboth
158158
159 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 });
164164
165 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});
modifiedtests/src/nesting/unnest.test.tsdiffbeforeafterboth
--- 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$/);
   });
 });