fix old helpers

This commit is contained in:
Francisco Giordano
2019-01-18 17:52:23 -03:00
parent 73a34f96a7
commit f84278433d
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
const { EVMRevert } = require('../helpers/EVMRevert');
const { expectThrow } = require('../helpers/expectThrow');
const { shouldFail } = require('../helpers/shouldFail');
require('../helpers/setup');
const { shouldBehaveLikeOwnable } = require('./Ownable.behavior');
@ -11,7 +12,7 @@ contract('Ownable', function ([_, owner, anyone, ...otherAccounts]) {
});
it('cannot be reinitialized', async function () {
await expectThrow(this.ownable.initialize(anyone), EVMRevert);
await shouldFail.reverting(this.ownable.initialize(anyone));
});
shouldBehaveLikeOwnable(owner, otherAccounts);