Skip to content

Commit

Permalink
Annotate legacy mode test in ReactDOMSingletonComponents (#28339)
Browse files Browse the repository at this point in the history
These are mainly regression tests for legacy root.
  • Loading branch information
eps1lon authored Feb 17, 2024
1 parent 6a44f35 commit 62a9c7d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -996,17 +996,17 @@ describe('ReactDOM HostSingleton', () => {
});

// https://github.com/facebook/react/issues/26128
it('(#26128) does not throw when rendering at body', async () => {
it('(#26128) does not throw when rendering at body in legacy mode', async () => {
ReactDOM.render(<div />, document.body);
});

// https://github.com/facebook/react/issues/26128
it('(#26128) does not throw when rendering at <html>', async () => {
it('(#26128) does not throw when rendering at <html> in legacy mode', async () => {
ReactDOM.render(<body />, document.documentElement);
});

// https://github.com/facebook/react/issues/26128
it('(#26128) does not throw when rendering at document', async () => {
it('(#26128) does not throw when rendering at document in legacy mode', async () => {
ReactDOM.render(<html />, document);
});
});

0 comments on commit 62a9c7d

Please sign in to comment.