Skip to content

Commit aa98878

Browse files
authored
chore: fix failures e2e test for node 8 (jestjs#7446)
1 parent 8b6add2 commit aa98878

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/__tests__/failures.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test('works with node assert', () => {
4343

4444
// Node 9 started to include the error for `doesNotThrow`
4545
// https://github.com/nodejs/node/pull/12167
46-
if (nodeMajorVersion >= 9) {
46+
if (nodeMajorVersion >= 8) {
4747
expect(summary).toContain(`
4848
assert.doesNotThrow(function)
4949
@@ -71,7 +71,7 @@ test('works with node assert', () => {
7171
Got unwanted exception.
7272
`;
7373

74-
if (nodeMajorVersion === 9) {
74+
if (nodeMajorVersion === 8 || nodeMajorVersion === 9) {
7575
const specificErrorMessage = `Message:
7676
Got unwanted exception.
7777
err!

0 commit comments

Comments
 (0)