Skip to content

Commit

Permalink
chore: fix failures e2e test for node 8 (jestjs#7446)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Dec 2, 2018
1 parent 8b6add2 commit aa98878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/__tests__/failures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test('works with node assert', () => {

// Node 9 started to include the error for `doesNotThrow`
// https://github.com/nodejs/node/pull/12167
if (nodeMajorVersion >= 9) {
if (nodeMajorVersion >= 8) {
expect(summary).toContain(`
assert.doesNotThrow(function)
Expand Down Expand Up @@ -71,7 +71,7 @@ test('works with node assert', () => {
Got unwanted exception.
`;

if (nodeMajorVersion === 9) {
if (nodeMajorVersion === 8 || nodeMajorVersion === 9) {
const specificErrorMessage = `Message:
Got unwanted exception.
err!
Expand Down

0 comments on commit aa98878

Please sign in to comment.