Skip to content

Commit 5c76557

Browse files
committed
test(error.reporting): Fix test using outdated error message
1 parent 32acfe8 commit 5c76557

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/pug/test/error.reporting.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ describe('error reporting', function() {
209209
{}
210210
);
211211
expect(err.message).toMatch(/mixin.error.pug:2/);
212-
expect(err.message).toMatch(/Cannot read property 'length' of null/);
212+
expect(err.message).toMatch(
213+
/Cannot read properties of null \(reading 'length'\)/
214+
// /Cannot read property 'length' of null/
215+
);
213216
});
214217
});
215218
describe('in a layout', function() {
@@ -220,7 +223,8 @@ describe('error reporting', function() {
220223
);
221224
expect(err.message).toMatch(/layout.with.runtime.error.pug:3/);
222225
expect(err.message).toMatch(
223-
/Cannot read property 'length' of undefined/
226+
/Cannot read properties of undefined \(reading 'length'\)/
227+
// /Cannot read property 'length' of undefined/
224228
);
225229
});
226230
});

0 commit comments

Comments
 (0)