@beamnetwork/chai-beam
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -20,3 +20,3 @@ /* eslint-env mocha */ | ||
const msg = message || error.message; | ||
assert(error.message === 'VM Exception while processing transaction: revert', `Expected revert, Error: ${msg}`); | ||
assert(error.message.includes('VM Exception while processing transaction: revert'), `Expected revert, Error: ${msg}`); | ||
} | ||
@@ -33,3 +33,3 @@ } | ||
} catch (error) { | ||
const invalidOpcodeReceived = error.message === 'VM Exception while processing transaction: invalid opcode'; | ||
const invalidOpcodeReceived = error.message.includes('VM Exception while processing transaction: invalid opcode'); | ||
const msg = message || error.message; | ||
@@ -36,0 +36,0 @@ assert(invalidOpcodeReceived, `Expected "invalid opcode", Error: ${msg}`); |
{ | ||
"name": "@beamnetwork/chai-beam", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Beam plugins for chai", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
155543
4185