tag. Either remove ' +
'them from the element, or pass a string or number value to keep ' +
'them in the DOM. For details, see https://react.dev/link/attribute-behavior ' +
'\n in div (at **)',
@@ -224,7 +224,7 @@ describe('ReactDOMComponent', () => {
root.render(
{}} />);
});
}).toErrorDev(
- 'Warning: Invalid event handler property `onDblClick`. Did you mean `onDoubleClick`?\n in div (at **)',
+ 'Invalid event handler property `onDblClick`. Did you mean `onDoubleClick`?\n in div (at **)',
);
});
@@ -236,7 +236,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: Unknown event handler property `onUnknown`. It will be ignored.\n in div (at **)',
+ 'Unknown event handler property `onUnknown`. It will be ignored.\n in div (at **)',
);
expect(container.firstChild.hasAttribute('onUnknown')).toBe(false);
expect(container.firstChild.onUnknown).toBe(undefined);
@@ -245,7 +245,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: Unknown event handler property `onunknown`. It will be ignored.\n in div (at **)',
+ 'Unknown event handler property `onunknown`. It will be ignored.\n in div (at **)',
);
expect(container.firstChild.hasAttribute('onunknown')).toBe(false);
expect(container.firstChild.onunknown).toBe(undefined);
@@ -254,7 +254,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: Unknown event handler property `on-unknown`. It will be ignored.\n in div (at **)',
+ 'Unknown event handler property `on-unknown`. It will be ignored.\n in div (at **)',
);
expect(container.firstChild.hasAttribute('on-unknown')).toBe(false);
expect(container.firstChild['on-unknown']).toBe(undefined);
@@ -268,7 +268,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: Unknown event handler property `onUnknown`. It will be ignored.\n in div (at **)',
+ 'Unknown event handler property `onUnknown`. It will be ignored.\n in div (at **)',
);
expect(container.firstChild.hasAttribute('onUnknown')).toBe(false);
expect(container.firstChild.onUnknown).toBe(undefined);
@@ -277,7 +277,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: Unknown event handler property `onunknown`. It will be ignored.\n in div (at **)',
+ 'Unknown event handler property `onunknown`. It will be ignored.\n in div (at **)',
);
expect(container.firstChild.hasAttribute('onunknown')).toBe(false);
expect(container.firstChild.onunknown).toBe(undefined);
@@ -286,7 +286,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: Unknown event handler property `on-unknown`. It will be ignored.\n in div (at **)',
+ 'Unknown event handler property `on-unknown`. It will be ignored.\n in div (at **)',
);
expect(container.firstChild.hasAttribute('on-unknown')).toBe(false);
expect(container.firstChild['on-unknown']).toBe(undefined);
@@ -300,7 +300,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: Invalid DOM property `CHILDREN`. Did you mean `children`?\n in div (at **)',
+ 'Invalid DOM property `CHILDREN`. Did you mean `children`?\n in div (at **)',
);
expect(container.firstChild.getAttribute('CHILDREN')).toBe('5');
});
@@ -328,7 +328,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: `NaN` is an invalid value for the `fontSize` css style property.' +
+ '`NaN` is an invalid value for the `fontSize` css style property.' +
'\n in span (at **)',
);
await act(() => {
@@ -355,7 +355,7 @@ describe('ReactDOMComponent', () => {
root.render(
);
});
}).toErrorDev(
- 'Warning: The provided `fontSize` CSS property is an unsupported type TemporalLike.' +
+ 'The provided `fontSize` CSS property is an unsupported type TemporalLike.' +
' This value must be coerced to a string before using it here.',
);
}).rejects.toThrowError(new TypeError('prod message'));
@@ -891,8 +891,8 @@ describe('ReactDOMComponent', () => {
expect(result2.toLowerCase()).not.toContain('script');
}
}).toErrorDev([
- 'Warning: Invalid attribute name: `blah" onclick="beevil" noise="hi`',
- 'Warning: Invalid attribute name: `>
`',
+ 'Invalid attribute name: `blah" onclick="beevil" noise="hi`',
+ 'Invalid attribute name: `>