Update test-helpers to v0.4.0. (#1770)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const { shouldFail } = require('openzeppelin-test-helpers');
|
||||
const { expectRevert } = require('openzeppelin-test-helpers');
|
||||
|
||||
const CountersImpl = artifacts.require('CountersImpl');
|
||||
|
||||
@ -39,7 +39,7 @@ contract('Counters', function () {
|
||||
|
||||
it('reverts if the current value is 0', async function () {
|
||||
await this.counter.decrement();
|
||||
await shouldFail.reverting.withMessage(this.counter.decrement(), 'SafeMath: subtraction overflow');
|
||||
await expectRevert(this.counter.decrement(), 'SafeMath: subtraction overflow');
|
||||
});
|
||||
|
||||
it('can be called multiple times', async function () {
|
||||
|
||||
Reference in New Issue
Block a user