121
ReactDOM.render(<Comp />, root);
122
expectDev(console.error.calls.count()).toBe(1);
123
expectDev(console.error.calls.argsFor(0)[0]).toEqual(
124
- 'Warning: Unsupported style property background-color. Did you mean backgroundColor? ' +
125
- 'Check the render method of `Comp`.'
124
+ 'Warning: Unsupported style property background-color. Did you mean backgroundColor?' +
125
+ '\n\nCheck the render method of `Comp`.'
126
);
127
});
128
146
147
expectDev(console.error.calls.count()).toBe(2);
148
expectDev(console.error.calls.argsFor(0)[0]).toEqual(
149
- 'Warning: Unsupported style property -ms-transform. Did you mean msTransform? ' +
150
- 'Check the render method of `Comp`.'
149
+ 'Warning: Unsupported style property -ms-transform. Did you mean msTransform?' +
150
+ '\n\nCheck the render method of `Comp`.'
151
);
152
expectDev(console.error.calls.argsFor(1)[0]).toEqual(
153
- 'Warning: Unsupported style property -webkit-transform. Did you mean WebkitTransform? ' +
154
- 'Check the render method of `Comp`.'
153
+ 'Warning: Unsupported style property -webkit-transform. Did you mean WebkitTransform?' +
154
+ '\n\nCheck the render method of `Comp`.'
155
);
156
});
157
175
expectDev(console.error.calls.count()).toBe(2);
176
expectDev(console.error.calls.argsFor(0)[0]).toEqual(
177
'Warning: Unsupported vendor-prefixed style property oTransform. ' +
178
- 'Did you mean OTransform? Check the render method of `Comp`.'
178
+ 'Did you mean OTransform?\n\nCheck the render method of `Comp`.'
179
);
180
expectDev(console.error.calls.argsFor(1)[0]).toEqual(
181
'Warning: Unsupported vendor-prefixed style property webkitTransform. ' +
182
- 'Did you mean WebkitTransform? Check the render method of `Comp`.'
182
+ 'Did you mean WebkitTransform?\n\nCheck the render method of `Comp`.'
183
);
184
});
185
202
ReactDOM.render(<Comp />, root);
203
expectDev(console.error.calls.count()).toBe(2);
204
expectDev(console.error.calls.argsFor(0)[0]).toEqual(
205
- 'Warning: Style property values shouldn\'t contain a semicolon. ' +
206
- 'Check the render method of `Comp`. Try "backgroundColor: blue" instead.',
205
+ 'Warning: Style property values shouldn\'t contain a semicolon.' +
206
+ '\n\nCheck the render method of `Comp`. Try "backgroundColor: blue" instead.',
207
);
208
expectDev(console.error.calls.argsFor(1)[0]).toEqual(
209
- 'Warning: Style property values shouldn\'t contain a semicolon. ' +
210
- 'Check the render method of `Comp`. Try "color: red" instead.',
209
+ 'Warning: Style property values shouldn\'t contain a semicolon.' +
210
+ '\n\nCheck the render method of `Comp`. Try "color: red" instead.',
211
);
212
});
213
226
227
expectDev(console.error.calls.count()).toBe(1);
228
expectDev(console.error.calls.argsFor(0)[0]).toEqual(
229
- 'Warning: `NaN` is an invalid value for the `fontSize` css style property. ' +
230
- 'Check the render method of `Comp`.'
229
+ 'Warning: `NaN` is an invalid value for the `fontSize` css style property.' +
230
+ '\n\nCheck the render method of `Comp`.'
231
);
232
});
233
});