File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ describe('React', () => {
34
34
spy . destroy ( ) ;
35
35
expect ( spy . calls . length ) . toBe ( 0 ) ;
36
36
37
- spy = expect . spyOn ( console , 'error ' ) ;
37
+ spy = expect . spyOn ( console , 'warn ' ) ;
38
38
tree . forceUpdate ( ) ;
39
39
spy . destroy ( ) ;
40
40
expect ( spy . calls . length ) . toBe ( 0 ) ;
@@ -78,7 +78,7 @@ describe('React', () => {
78
78
// Trick React into checking propTypes every time:
79
79
LocalProvider . displayName = Math . random ( ) . toString ( ) ;
80
80
81
- let spy = expect . spyOn ( console , 'error ' ) ;
81
+ let spy = expect . spyOn ( console , 'warn ' ) ;
82
82
const tree = TestUtils . renderIntoDocument (
83
83
< LocalProvider store = { store } >
84
84
{ ( ) => < Child /> }
@@ -94,7 +94,7 @@ describe('React', () => {
94
94
/ W i t h R e a c t 0 .1 4 a n d l a t e r v e r s i o n s , y o u n o l o n g e r n e e d t o w r a p < P r o v i d e r > c h i l d i n t o a f u n c t i o n ./
95
95
) ;
96
96
97
- spy = expect . spyOn ( console , 'error ' ) ;
97
+ spy = expect . spyOn ( console , 'warn ' ) ;
98
98
tree . forceUpdate ( ) ;
99
99
spy . destroy ( ) ;
100
100
expect ( spy . calls . length ) . toBe ( 0 ) ;
You can’t perform that action at this time.
0 commit comments