Annotate legacy mode test in ReactDOMSingletonComponents (#28339)
These are mainly regression tests for legacy root.
Sebastian Silbermann committed
Feb 17, 2024 at 15:28 UTC
62a9c7db185b0852fccd0e48797a3de05520f120
1 file changed
+3
-3
packages/react-dom/src/__tests__/ReactDOMSingletonComponents-test.js
+3
-3
@@ -996,17 +996,17 @@ describe('ReactDOM HostSingleton', () => {
996
});
997
998
// https://github.com/facebook/react/issues/26128
999
- it('(#26128) does not throw when rendering at body', async () => {
999
+ it('(#26128) does not throw when rendering at body in legacy mode', async () => {
1000
ReactDOM.render(<div />, document.body);
1001
});
1002
1003
// https://github.com/facebook/react/issues/26128
1004
- it('(#26128) does not throw when rendering at <html>', async () => {
1004
+ it('(#26128) does not throw when rendering at <html> in legacy mode', async () => {
1005
ReactDOM.render(<body />, document.documentElement);
1006
});
1007
1008
// https://github.com/facebook/react/issues/26128
1009
- it('(#26128) does not throw when rendering at document', async () => {
1009
+ it('(#26128) does not throw when rendering at document in legacy mode', async () => {
1010
ReactDOM.render(<html />, document);
1011
});
1012
});