From f213c86e49f57d58492995f10ba0ce43c04e4799 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..146ae4180 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 \(reading 'length'\)/); }); }); 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 \(reading 'length'\)/ ); }); });