File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
addons/react-addons-test-utils Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
'use strict' ;
11
11
12
+ var warning = require ( 'fbjs/lib/warning' ) ;
13
+
12
14
// This package has been deprecated in NPM as of version 15.5.0
13
15
// But NPM deprecation warnings are easy to overlook
14
16
// So a more explicit runtime warning seemed appropriate
15
- console . error (
17
+ warning (
18
+ false ,
16
19
'ReactTestUtils has been moved to react-dom/test-utils. ' +
17
20
'Update references to remove this warning.'
18
21
) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ describe('ReactTestUtils', function() {
24
24
25
25
it ( 'should warn on include' , function ( ) {
26
26
expect ( console . error ) . toHaveBeenCalledWith (
27
- 'ReactTestUtils has been moved to react-dom/test-utils. ' +
27
+ 'Warning: ReactTestUtils has been moved to react-dom/test-utils. ' +
28
28
'Update references to remove this warning.'
29
29
) ;
30
30
} ) ;
You can’t perform that action at this time.
0 commit comments