Skip to content

Commit f213c86

Browse files
committed
fix unit test errors
1 parent 4767caf commit f213c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ 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(/Cannot read properties of null \(reading 'length'\)/);
213213
});
214214
});
215215
describe('in a layout', function() {
@@ -220,7 +220,7 @@ describe('error reporting', function() {
220220
);
221221
expect(err.message).toMatch(/layout.with.runtime.error.pug:3/);
222222
expect(err.message).toMatch(
223-
/Cannot read property 'length' of undefined/
223+
/Cannot read properties of undefined \(reading 'length'\)/
224224
);
225225
});
226226
});

0 commit comments

Comments
 (0)