Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix unit test errors #3429

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/pug/test/error.reporting.test.js
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