Skip to content

Commit b23203e

Browse files
eps1lonAndyPengc12
authored andcommitted
Annotate legacy mode test in ReactDOMSingletonComponents (facebook#28339)
These are mainly regression tests for legacy root.
1 parent 7712744 commit b23203e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-dom/src/__tests__/ReactDOMSingletonComponents-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -996,17 +996,17 @@ describe('ReactDOM HostSingleton', () => {
996996
});
997997

998998
// 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 () => {
10001000
ReactDOM.render(<div />, document.body);
10011001
});
10021002

10031003
// 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 () => {
10051005
ReactDOM.render(<body />, document.documentElement);
10061006
});
10071007

10081008
// 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 () => {
10101010
ReactDOM.render(<html />, document);
10111011
});
10121012
});

0 commit comments

Comments
 (0)