Replaced assertJump, assertRevert and expectThrow with shouldFail. (#1363)
* Replaced assertJump, assertRevert and expectThrow with shouldFail.
* Fixed linter errors.
* Fixed typo.
* Made the helpers async.
(cherry picked from commit b0da0fded0)
This commit is contained in:
committed by
Leo Arias
parent
620d524398
commit
7cd0d5a452
@ -1,5 +1,5 @@
|
||||
const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
|
||||
const { assertRevert } = require('../helpers/assertRevert');
|
||||
const shouldFail = require('../helpers/shouldFail');
|
||||
|
||||
const ERC165Mock = artifacts.require('ERC165Mock');
|
||||
|
||||
@ -12,7 +12,7 @@ contract('ERC165', function () {
|
||||
});
|
||||
|
||||
it('does not allow 0xffffffff', async function () {
|
||||
await assertRevert(
|
||||
await shouldFail.reverting(
|
||||
this.mock.registerInterface(0xffffffff)
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user