Skip to content

Commit

Permalink
relax too-brittle test so it works across versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Nov 10, 2015
1 parent f1973b9 commit 8105b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ test('Babel require does not apply to non-helper (no "_" prefix)', function (t)
// ^
// SyntaxError: Unexpected reserved word

// TODO: Why standard error?
t.true(/module.exports = async \(\) => \{\};\s*\n.*?\n.*?Unexpected token >/.test(stdout));
// TODO: Why stdout?
t.true(/module\.exports = async \(\) => \{\};(?:.|\s)*?Unexpected token/.test(stdout));
t.end();
});
});
Expand Down

0 comments on commit 8105b2b

Please sign in to comment.