Skip to content

Commit

Permalink
chore: upgrade to jest 24 (#15778)
Browse files Browse the repository at this point in the history
* chore: upgrade to jest 24

* download react-is from npm manually
  • Loading branch information
SimenB authored and Sunil Pai committed Oct 3, 2019
1 parent de5792c commit 94eead2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/ReactTestRendererAsync-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('ReactTestRendererAsync', () => {

expect(() =>
expect(Scheduler).toFlushAndYieldThrough(['foo', 'baz']),
).toThrow('Expected value to equal:');
).toThrow('// deep equality');
});

it('toFlushAndYield', () => {
Expand All @@ -181,7 +181,7 @@ describe('ReactTestRendererAsync', () => {
);

expect(() => expect(Scheduler).toFlushWithoutYielding()).toThrowError(
'Expected value to equal:',
'// deep equality',
);

renderer.update(
Expand All @@ -193,7 +193,7 @@ describe('ReactTestRendererAsync', () => {
);

expect(() => expect(Scheduler).toFlushAndYield(['foo', 'baz'])).toThrow(
'Expected value to equal:',
'// deep equality',
);
});

Expand Down Expand Up @@ -254,7 +254,7 @@ describe('ReactTestRendererAsync', () => {

ReactTestRenderer.create(<App />);
expect(() => expect(Scheduler).toHaveYielded(['A', 'B'])).toThrow(
'Expected value to equal:',
'// deep equality',
);
});

Expand Down

0 comments on commit 94eead2

Please sign in to comment.