@@ -148,9 +148,9 @@ describe('ReactDOMComponent', () => {
148
148
ReactDOM . render ( < div foo = { ( ) => { } } /> , container ) ;
149
149
expectDev ( console . error . calls . count ( 0 ) ) . toBe ( 1 ) ;
150
150
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 ' +
152
152
'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 ' +
154
154
'\n in div (at **)' ,
155
155
) ;
156
156
} ) ;
@@ -161,9 +161,9 @@ describe('ReactDOMComponent', () => {
161
161
ReactDOM . render ( < div foo = { ( ) => { } } baz = { ( ) => { } } /> , container ) ;
162
162
expectDev ( console . error . calls . count ( 0 ) ) . toBe ( 1 ) ;
163
163
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 ' +
167
167
'\n in div (at **)' ,
168
168
) ;
169
169
} ) ;
@@ -174,7 +174,7 @@ describe('ReactDOMComponent', () => {
174
174
ReactDOM . render ( < div onDblClick = { ( ) => { } } /> , container ) ;
175
175
expectDev ( console . error . calls . count ( 0 ) ) . toBe ( 1 ) ;
176
176
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 **)' ,
178
178
) ;
179
179
} ) ;
180
180
@@ -1732,7 +1732,7 @@ describe('ReactDOMComponent', () => {
1732
1732
'Warning: Invalid DOM property `class`. Did you mean `className`?\n in div (at **)' ,
1733
1733
) ;
1734
1734
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 ' +
1736
1736
'`onClick`?\n in input (at **)' ,
1737
1737
) ;
1738
1738
} ) ;
@@ -1746,7 +1746,7 @@ describe('ReactDOMComponent', () => {
1746
1746
'Warning: Invalid DOM property `class`. Did you mean `className`?\n in div (at **)' ,
1747
1747
) ;
1748
1748
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 ' +
1750
1750
'`onClick`?\n in input (at **)' ,
1751
1751
) ;
1752
1752
} ) ;
@@ -2115,7 +2115,7 @@ describe('ReactDOMComponent', () => {
2115
2115
expect ( el . hasAttribute ( 'whatever' ) ) . toBe ( false ) ;
2116
2116
2117
2117
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' ,
2119
2119
) ;
2120
2120
} ) ;
2121
2121
@@ -2186,7 +2186,7 @@ describe('ReactDOMComponent', () => {
2186
2186
expect ( el . hasAttribute ( 'whatever' ) ) . toBe ( false ) ;
2187
2187
2188
2188
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.' ,
2190
2190
) ;
2191
2191
} ) ;
2192
2192
0 commit comments