Skip to content

Commit

Permalink
Make FakeTimer test stack agnostic.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgtybhertgeghgtwtg committed Mar 22, 2017
1 parent 40c85fe commit ea0bb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-util/src/__tests__/FakeTimers-test.js
Expand Up @@ -327,7 +327,7 @@ describe('FakeTimers', () => {
const timers = new FakeTimers(global, moduleMocker, {rootDir: __dirname});
timers.runAllTimers();
expect(
console.warn.mock.calls[0][0].split('\n').slice(0, -4).join('\n'),
console.warn.mock.calls[0][0].split('\nStack Trace')[0],
).toMatchSnapshot();
console.warn = consoleWarn;
});
Expand Down

0 comments on commit ea0bb8a

Please sign in to comment.