Skip to content

Commit

Permalink
add error end check
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkine committed May 28, 2020
1 parent b1556ea commit 9cbd760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ describe('parse', () => {
} catch (err) {
if (err.name !== 'ParseError') throw err;
if (!expectedError) throw err;
const { code, message, pos, start } = err
const { code, message, pos, start, end } = err;
try {
assert.deepEqual({ code, message, pos, start }, expectedError);
assert.deepEqual({ code, message, pos, start, end }, expectedError);
} catch (err2) {
const e = err2.code === 'MODULE_NOT_FOUND' ? err : err2;
throw e;
Expand Down

0 comments on commit 9cbd760

Please sign in to comment.