@@ -697,7 +697,7 @@ describe('ReactComponentLifeCycle', () => {
697697 expect ( ( ) => ReactDOM . render ( < Component /> , container ) ) . toErrorDev (
698698 'Unsafe legacy lifecycles will not be called for components using new component APIs.' ,
699699 ) ;
700- } ) . toLowPriorityWarnDev (
700+ } ) . toWarnDev (
701701 [
702702 'componentWillMount has been renamed' ,
703703 'componentWillReceiveProps has been renamed' ,
@@ -735,7 +735,7 @@ describe('ReactComponentLifeCycle', () => {
735735 ) . toErrorDev (
736736 'Unsafe legacy lifecycles will not be called for components using new component APIs.' ,
737737 ) ;
738- } ) . toLowPriorityWarnDev (
738+ } ) . toWarnDev (
739739 [
740740 'componentWillMount has been renamed' ,
741741 'componentWillReceiveProps has been renamed' ,
@@ -803,7 +803,7 @@ describe('ReactComponentLifeCycle', () => {
803803 'The above lifecycles should be removed. Learn more about this warning here:\n' +
804804 'https://fb.me/react-unsafe-component-lifecycles' ,
805805 ) ;
806- } ) . toLowPriorityWarnDev (
806+ } ) . toWarnDev (
807807 [
808808 'componentWillMount has been renamed' ,
809809 'componentWillUpdate has been renamed' ,
@@ -853,7 +853,7 @@ describe('ReactComponentLifeCycle', () => {
853853 'The above lifecycles should be removed. Learn more about this warning here:\n' +
854854 'https://fb.me/react-unsafe-component-lifecycles' ,
855855 ) ;
856- } ) . toLowPriorityWarnDev ( [ 'componentWillMount has been renamed' ] , {
856+ } ) . toWarnDev ( [ 'componentWillMount has been renamed' ] , {
857857 withoutStack : true ,
858858 } ) ;
859859
@@ -876,7 +876,7 @@ describe('ReactComponentLifeCycle', () => {
876876 'The above lifecycles should be removed. Learn more about this warning here:\n' +
877877 'https://fb.me/react-unsafe-component-lifecycles' ,
878878 ) ;
879- } ) . toLowPriorityWarnDev ( [ 'componentWillReceiveProps has been renamed' ] , {
879+ } ) . toWarnDev ( [ 'componentWillReceiveProps has been renamed' ] , {
880880 withoutStack : true ,
881881 } ) ;
882882 } ) ;
@@ -908,7 +908,7 @@ describe('ReactComponentLifeCycle', () => {
908908 'The above lifecycles should be removed. Learn more about this warning here:\n' +
909909 'https://fb.me/react-unsafe-component-lifecycles' ,
910910 ) ;
911- } ) . toLowPriorityWarnDev (
911+ } ) . toWarnDev (
912912 [
913913 'componentWillMount has been renamed' ,
914914 'componentWillUpdate has been renamed' ,
@@ -956,7 +956,7 @@ describe('ReactComponentLifeCycle', () => {
956956 'The above lifecycles should be removed. Learn more about this warning here:\n' +
957957 'https://fb.me/react-unsafe-component-lifecycles' ,
958958 ) ;
959- } ) . toLowPriorityWarnDev ( [ 'componentWillMount has been renamed' ] , {
959+ } ) . toWarnDev ( [ 'componentWillMount has been renamed' ] , {
960960 withoutStack : true ,
961961 } ) ;
962962
@@ -978,7 +978,7 @@ describe('ReactComponentLifeCycle', () => {
978978 'The above lifecycles should be removed. Learn more about this warning here:\n' +
979979 'https://fb.me/react-unsafe-component-lifecycles' ,
980980 ) ;
981- } ) . toLowPriorityWarnDev ( [ 'componentWillReceiveProps has been renamed' ] , {
981+ } ) . toWarnDev ( [ 'componentWillReceiveProps has been renamed' ] , {
982982 withoutStack : true ,
983983 } ) ;
984984 } ) ;
@@ -1111,9 +1111,7 @@ describe('ReactComponentLifeCycle', () => {
11111111 }
11121112
11131113 const div = document . createElement ( 'div' ) ;
1114- expect ( ( ) =>
1115- ReactDOM . render ( < MyComponent foo = "bar" /> , div ) ,
1116- ) . toLowPriorityWarnDev (
1114+ expect ( ( ) => ReactDOM . render ( < MyComponent foo = "bar" /> , div ) ) . toWarnDev (
11171115 [
11181116 'componentWillMount has been renamed' ,
11191117 'componentWillReceiveProps has been renamed' ,
@@ -1382,9 +1380,7 @@ describe('ReactComponentLifeCycle', () => {
13821380 }
13831381
13841382 const container = document . createElement ( 'div' ) ;
1385- expect ( ( ) =>
1386- ReactDOM . render ( < MyComponent x = { 1 } /> , container ) ,
1387- ) . toLowPriorityWarnDev (
1383+ expect ( ( ) => ReactDOM . render ( < MyComponent x = { 1 } /> , container ) ) . toWarnDev (
13881384 [
13891385 /* eslint-disable max-len */
13901386 `Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
0 commit comments