Skip to content

Commit

Permalink
Regression test: Suspense + hydration + legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Sep 28, 2019
1 parent f553515 commit ef280be
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,4 +659,15 @@ describe('ReactDOMServerHydration', () => {

document.body.removeChild(parentContainer);
});

it('regression test: Suspense + hydration in legacy mode ', () => {
const element = document.createElement('div');
element.innerHTML = '<div>Hello World</div>';
ReactDOM.hydrate(
<React.Suspense>
<div>Hello World</div>
</React.Suspense>,
element,
);
});
});

0 comments on commit ef280be

Please # to comment.