From 9cbd760d86263b391d1d6718404cd59f22e6109d Mon Sep 17 00:00:00 2001 From: pushkine Date: Thu, 28 May 2020 02:09:46 +0200 Subject: [PATCH] add error `end` check --- test/parser/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parser/index.js b/test/parser/index.js index 2c8d516a7d84..a7b0907dc5cf 100644 --- a/test/parser/index.js +++ b/test/parser/index.js @@ -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;