@@ -148,9 +148,9 @@ describe('ReactDOMComponent', () => {
148148 ReactDOM . render ( < div foo = { ( ) => { } } /> , container ) ;
149149 expectDev ( console . error . calls . count ( 0 ) ) . toBe ( 1 ) ;
150150 expectDev ( normalizeCodeLocInfo ( console . error . calls . argsFor ( 0 ) [ 0 ] ) ) . toBe (
151- 'Warning: Invalid prop `foo` on <div> tag. Either remove this prop ' +
151+ 'Warning: Invalid value for prop `foo` on <div> tag. Either remove it ' +
152152 'from the element, or pass a string or number value to keep ' +
153- 'it in the DOM. For details, see https://fb.me/react-unknown-prop ' +
153+ 'it in the DOM. For details, see https://fb.me/react-attribute-behavior ' +
154154 '\n in div (at **)' ,
155155 ) ;
156156 } ) ;
@@ -161,9 +161,9 @@ describe('ReactDOMComponent', () => {
161161 ReactDOM . render ( < div foo = { ( ) => { } } baz = { ( ) => { } } /> , container ) ;
162162 expectDev ( console . error . calls . count ( 0 ) ) . toBe ( 1 ) ;
163163 expectDev ( normalizeCodeLocInfo ( console . error . calls . argsFor ( 0 ) [ 0 ] ) ) . toBe (
164- 'Warning: Invalid props `foo`, `baz` on <div> tag. Either remove these ' +
165- 'props from the element, or pass a string or number value to keep ' +
166- 'them in the DOM. For details, see https://fb.me/react-unknown-prop ' +
164+ 'Warning: Invalid values for props `foo`, `baz` on <div> tag. Either remove ' +
165+ 'them from the element, or pass a string or number value to keep ' +
166+ 'them in the DOM. For details, see https://fb.me/react-attribute-behavior ' +
167167 '\n in div (at **)' ,
168168 ) ;
169169 } ) ;
@@ -174,7 +174,7 @@ describe('ReactDOMComponent', () => {
174174 ReactDOM . render ( < div onDblClick = { ( ) => { } } /> , container ) ;
175175 expectDev ( console . error . calls . count ( 0 ) ) . toBe ( 1 ) ;
176176 expectDev ( normalizeCodeLocInfo ( console . error . calls . argsFor ( 0 ) [ 0 ] ) ) . toBe (
177- 'Warning: Unknown event handler property `onDblClick`. Did you mean `onDoubleClick`?\n in div (at **)' ,
177+ 'Warning: Invalid event handler property `onDblClick`. Did you mean `onDoubleClick`?\n in div (at **)' ,
178178 ) ;
179179 } ) ;
180180
@@ -1732,7 +1732,7 @@ describe('ReactDOMComponent', () => {
17321732 'Warning: Invalid DOM property `class`. Did you mean `className`?\n in div (at **)' ,
17331733 ) ;
17341734 expectDev ( normalizeCodeLocInfo ( console . error . calls . argsFor ( 1 ) [ 0 ] ) ) . toBe (
1735- 'Warning: Unknown event handler property `onclick`. Did you mean ' +
1735+ 'Warning: Invalid event handler property `onclick`. Did you mean ' +
17361736 '`onClick`?\n in input (at **)' ,
17371737 ) ;
17381738 } ) ;
@@ -1746,7 +1746,7 @@ describe('ReactDOMComponent', () => {
17461746 'Warning: Invalid DOM property `class`. Did you mean `className`?\n in div (at **)' ,
17471747 ) ;
17481748 expectDev ( normalizeCodeLocInfo ( console . error . calls . argsFor ( 1 ) [ 0 ] ) ) . toBe (
1749- 'Warning: Unknown event handler property `onclick`. Did you mean ' +
1749+ 'Warning: Invalid event handler property `onclick`. Did you mean ' +
17501750 '`onClick`?\n in input (at **)' ,
17511751 ) ;
17521752 } ) ;
@@ -2115,7 +2115,7 @@ describe('ReactDOMComponent', () => {
21152115 expect ( el . hasAttribute ( 'whatever' ) ) . toBe ( false ) ;
21162116
21172117 expectDev ( console . error . calls . argsFor ( 0 ) [ 0 ] ) . toContain (
2118- 'Warning: Invalid prop `whatever` on <div> tag' ,
2118+ 'Warning: Invalid value for prop `whatever` on <div> tag' ,
21192119 ) ;
21202120 } ) ;
21212121
@@ -2186,7 +2186,7 @@ describe('ReactDOMComponent', () => {
21862186 expect ( el . hasAttribute ( 'whatever' ) ) . toBe ( false ) ;
21872187
21882188 expectDev ( console . error . calls . argsFor ( 0 ) [ 0 ] ) . toContain (
2189- 'Warning: Invalid prop `whatever` on <div> tag.' ,
2189+ 'Warning: Invalid value for prop `whatever` on <div> tag.' ,
21902190 ) ;
21912191 } ) ;
21922192
0 commit comments