From 0e6fa97e776343e71ee9dea517a4b9e0735e6f1a Mon Sep 17 00:00:00 2001 From: MrJithil Date: Mon, 4 Mar 2024 16:32:54 +1100 Subject: [PATCH] fix unit test errors --- packages/pug/test/error.reporting.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pug/test/error.reporting.test.js b/packages/pug/test/error.reporting.test.js index 99ee8e3a4..ddf6d6882 100644 --- a/packages/pug/test/error.reporting.test.js +++ b/packages/pug/test/error.reporting.test.js @@ -209,7 +209,7 @@ describe('error reporting', function() { {} ); expect(err.message).toMatch(/mixin.error.pug:2/); - expect(err.message).toMatch(/Cannot read property 'length' of null/); + expect(err.message).toMatch(/Cannot read (properties of null|property 'length' of null)/); }); }); describe('in a layout', function() { @@ -220,7 +220,7 @@ describe('error reporting', function() { ); expect(err.message).toMatch(/layout.with.runtime.error.pug:3/); expect(err.message).toMatch( - /Cannot read property 'length' of undefined/ + /Cannot read (properties of undefined|property 'length' of undefined)/ ); }); });