@@ -206,7 +206,8 @@ describe('ReactElementValidator', function() {
206206 } ) ;
207207 ReactTestUtils . renderIntoDocument ( React . createElement ( ParentComp ) ) ;
208208 expect ( console . warn . calls [ 0 ] . args [ 0 ] ) . toBe (
209- 'Warning: Invalid prop `color` of type `number` supplied to `MyComp`, ' +
209+ 'Warning: Failed propType: ' +
210+ 'Invalid prop `color` of type `number` supplied to `MyComp`, ' +
210211 'expected `string`. Check the render method of `ParentComp`.'
211212 ) ;
212213 } ) ;
@@ -247,7 +248,8 @@ describe('ReactElementValidator', function() {
247248
248249 expect ( console . warn . calls . length ) . toBe ( 1 ) ;
249250 expect ( console . warn . calls [ 0 ] . args [ 0 ] ) . toBe (
250- 'Warning: Required prop `prop` was not specified in `Component`.'
251+ 'Warning: Failed propType: ' +
252+ 'Required prop `prop` was not specified in `Component`.'
251253 ) ;
252254 } ) ;
253255
@@ -270,7 +272,8 @@ describe('ReactElementValidator', function() {
270272
271273 expect ( console . warn . calls . length ) . toBe ( 1 ) ;
272274 expect ( console . warn . calls [ 0 ] . args [ 0 ] ) . toBe (
273- 'Warning: Required prop `prop` was not specified in `Component`.'
275+ 'Warning: Failed propType: ' +
276+ 'Required prop `prop` was not specified in `Component`.'
274277 ) ;
275278 } ) ;
276279
@@ -295,11 +298,13 @@ describe('ReactElementValidator', function() {
295298
296299 expect ( console . warn . calls . length ) . toBe ( 2 ) ;
297300 expect ( console . warn . calls [ 0 ] . args [ 0 ] ) . toBe (
298- 'Warning: Required prop `prop` was not specified in `Component`.'
301+ 'Warning: Failed propType: ' +
302+ 'Required prop `prop` was not specified in `Component`.'
299303 ) ;
300304
301305 expect ( console . warn . calls [ 1 ] . args [ 0 ] ) . toBe (
302- 'Warning: Invalid prop `prop` of type `number` supplied to ' +
306+ 'Warning: Failed propType: ' +
307+ 'Invalid prop `prop` of type `number` supplied to ' +
303308 '`Component`, expected `string`.'
304309 ) ;
305310
0 commit comments