Skip to content

Commit 29fdf27

Browse files
committed
fix more tests
1 parent 54bc56e commit 29fdf27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/components/Provider.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('React', () => {
3434
spy.destroy();
3535
expect(spy.calls.length).toBe(0);
3636

37-
spy = expect.spyOn(console, 'error');
37+
spy = expect.spyOn(console, 'warn');
3838
tree.forceUpdate();
3939
spy.destroy();
4040
expect(spy.calls.length).toBe(0);
@@ -78,7 +78,7 @@ describe('React', () => {
7878
// Trick React into checking propTypes every time:
7979
LocalProvider.displayName = Math.random().toString();
8080

81-
let spy = expect.spyOn(console, 'error');
81+
let spy = expect.spyOn(console, 'warn');
8282
const tree = TestUtils.renderIntoDocument(
8383
<LocalProvider store={store}>
8484
{() => <Child />}
@@ -94,7 +94,7 @@ describe('React', () => {
9494
/With React 0.14 and later versions, you no longer need to wrap <Provider> child into a function./
9595
);
9696

97-
spy = expect.spyOn(console, 'error');
97+
spy = expect.spyOn(console, 'warn');
9898
tree.forceUpdate();
9999
spy.destroy();
100100
expect(spy.calls.length).toBe(0);

0 commit comments

Comments
 (0)