Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make FakeTimer test stack agnostic.
Browse files Browse the repository at this point in the history
wtgtybhertgeghgtwtg committed Mar 22, 2017

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
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
Original file line number Diff line number Diff line change
@@ -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;
});

0 comments on commit ea0bb8a

Please sign in to comment.