mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-02-03 06:13:53 +00:00
fix test utils
This commit is contained in:
parent
3ad4094040
commit
750661069a
@ -191,7 +191,7 @@ exports.ensureException = function(error) {
|
||||
assert(isException(error), error.toString());
|
||||
};
|
||||
|
||||
exports.isException = function(error) {
|
||||
function isException(error) {
|
||||
let strError = error.toString();
|
||||
return strError.includes('invalid opcode') || strError.includes('invalid JUMP') || strError.includes('revert');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user