Skip to content

Commit

Permalink
Annotate legacy mode test in ReactDOMSingletonComponents (facebook#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 and AndyPengc12 committed Apr 15, 2024
1 parent 7712744 commit b23203e
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 b23203e

Please sign in to comment.