Skip to content

Commit

Permalink
Failing test for improper toString override in CompileError
Browse files Browse the repository at this point in the history
  • Loading branch information
esarbanis committed Dec 12, 2017
1 parent 0da8191 commit e3b5f52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('parse', () => {
assert.equal(err.message, expected.message);
assert.deepEqual(err.loc, expected.loc);
assert.equal(err.pos, expected.pos);
assert.equal(err.toString().split('\n')[0], `${expected.message} (${expected.loc.line}:${expected.loc.column})`);
} catch (err2) {
const e = err2.code === 'MODULE_NOT_FOUND' ? err : err2;
throw e;
Expand Down

0 comments on commit e3b5f52

Please sign in to comment.