Remove chai-as-promised (#1116)
* Test: Remove chai-as-promised calls * Test/Helpers: expectThrow accepts optional message * NPM: Remove chai-as-promised * Contracts/DestructibleMock: Fix lint
This commit is contained in:
committed by
Nicolás Venturo
parent
afe9113b18
commit
e6c15b34da
@ -1,4 +1,5 @@
|
||||
const { shouldBehaveLikeEscrow } = require('./Escrow.behaviour');
|
||||
const { expectThrow } = require('../helpers/expectThrow');
|
||||
const { EVMRevert } = require('../helpers/EVMRevert');
|
||||
|
||||
const BigNumber = web3.BigNumber;
|
||||
@ -35,7 +36,7 @@ contract('ConditionalEscrow', function (accounts) {
|
||||
it('reverts on withdrawals', async function () {
|
||||
await this.escrow.deposit(payee, { from: owner, value: amount });
|
||||
|
||||
await this.escrow.withdraw(payee, { from: owner }).should.be.rejectedWith(EVMRevert);
|
||||
await expectThrow(this.escrow.withdraw(payee, { from: owner }), EVMRevert);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user