--- a/tests/src/collision-tests/adminLimitsOff.test.ts +++ b/tests/src/collision-tests/adminLimitsOff.test.ts @@ -53,8 +53,7 @@ ]); await timeoutPromise(10000); const changeAdminTx4 = api.tx.nft.addCollectionAdmin(collectionId, Alice.address); - // tslint:disable-next-line: no-unused-expression - expect(submitTransactionExpectFailAsync(Alice, changeAdminTx4)).to.be.rejected; + await expect(submitTransactionExpectFailAsync(Alice, changeAdminTx4)).to.be.rejected; const adminListAfterAddAdmin: any = (await api.query.nft.adminList(collectionId)); expect(adminListAfterAddAdmin).to.be.contains(Eve.address); --- a/tests/src/createCollection.test.ts +++ b/tests/src/createCollection.test.ts @@ -40,8 +40,7 @@ const badTransaction = async () => { await createCollectionExpectSuccess({mode: {type: 'Invalid'}}); }; - // tslint:disable-next-line:no-unused-expression - expect(badTransaction()).to.be.rejected; + await expect(badTransaction()).to.be.rejected; const BcollectionCount = parseInt((await api.query.nft.createdCollectionCount()).toString(), 10); expect(BcollectionCount).to.be.equal(AcollectionCount, 'Error: Incorrect collection created.');