Skip to content

Commit

Permalink
fix failing test (#5996)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Apr 15, 2018
1 parent 65d3d8d commit 70e7ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`prints useful error for requires after test is done 1`] = `
9 | test('require after done', () => {
10 | setTimeout(() => {
> 11 | const double = require('../');
| ^
12 |
13 | expect(double(5)).toBe(10);
14 | }, 0);"
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/require_after_teardown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ test('prints useful error for requires after test is done', () => {

const interestingLines = stderr
.split('\n')
.slice(9, 17)
.slice(9, 18)
.join('\n');

expect(interestingLines).toMatchSnapshot();
expect(stderr.split('\n')[18]).toMatch(
expect(stderr.split('\n')[19]).toMatch(
new RegExp('(__tests__/late-require.test.js:11:20)'),
);
});

0 comments on commit 70e7ac2

Please sign in to comment.