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 { signMessage, toEthSignedMessageHash } = require('../helpers/sign');
|
||||
const { expectThrow } = require('../helpers/expectThrow');
|
||||
const shouldFail = require('../helpers/shouldFail');
|
||||
|
||||
const ECDSAMock = artifacts.require('ECDSAMock');
|
||||
|
||||
@ -113,7 +113,7 @@ contract('ECDSA', function ([_, anyone]) {
|
||||
it.skip('reverts', async function () {
|
||||
// Create the signature
|
||||
const signature = signMessage(anyone, TEST_MESSAGE);
|
||||
await expectThrow(
|
||||
await shouldFail.reverting(
|
||||
this.ecdsa.recover(TEST_MESSAGE.substring(2), signature)
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user