Skip to content

Commit

Permalink
fix unit test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJithil committed Mar 4, 2024
1 parent 4767caf commit 0e6fa97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pug/test/error.reporting.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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)/
);
});
});
Expand Down

0 comments on commit 0e6fa97

Please sign in to comment.