* Moving towards chai.should. * Fixed failing tests. * Fixed linter errors. * Revert package-lock.json changes. * Fixed failing tests. * s/eq/equal * Addressed review comment
16 lines
333 B
JavaScript
16 lines
333 B
JavaScript
const should = require('chai')
|
|
.should();
|
|
|
|
async function assertJump (promise) {
|
|
try {
|
|
await promise;
|
|
should.fail('Expected invalid opcode not received');
|
|
} catch (error) {
|
|
error.message.should.include('invalid opcode', `Expected "invalid opcode", got ${error} instead`);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
assertJump,
|
|
};
|