Skip to content

Commit 0e6fa97

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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|property 'length' of null)/);
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|property 'length' of undefined)/
224224
);
225225
});
226226
});

0 commit comments

Comments
 (0)