Update test-helpers to v0.4.0. (#1770)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const { ether, shouldFail } = require('openzeppelin-test-helpers');
|
||||
const { ether, expectRevert } = require('openzeppelin-test-helpers');
|
||||
const { shouldBehaveLikeEscrow } = require('./Escrow.behavior');
|
||||
|
||||
const ConditionalEscrowMock = artifacts.require('ConditionalEscrowMock');
|
||||
@ -26,7 +26,7 @@ contract('ConditionalEscrow', function ([_, owner, payee, ...otherAccounts]) {
|
||||
it('reverts on withdrawals', async function () {
|
||||
await this.escrow.deposit(payee, { from: owner, value: amount });
|
||||
|
||||
await shouldFail.reverting.withMessage(this.escrow.withdraw(payee, { from: owner }),
|
||||
await expectRevert(this.escrow.withdraw(payee, { from: owner }),
|
||||
'ConditionalEscrow: payee is not allowed to withdraw'
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user