Skip to content

Commit

Permalink
Use some new types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Apr 10, 2021
1 parent 9cb8315 commit 909bd65
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,12 @@ describe('ReactDOMFizzServer', () => {
await act(async () => {
const {startWriting} = ReactDOMFizzServer.pipeToNodeWritable(
<Suspense fallback={<Text text="Loading A..." />}>
<Text text="This will show A: " />
<div>
<AsyncText text="A" />
</div>
<>
<Text text="This will show A: " />
<div>
<AsyncText text="A" />
</div>
</>
</Suspense>,
writableA,
{
Expand Down Expand Up @@ -432,11 +434,11 @@ describe('ReactDOMFizzServer', () => {
}

function AsyncPath({id}) {
return <path id={readText(id)}>{[]}</path>;
return <path id={readText(id)} />;
}

function AsyncMi({id}) {
return <mi id={readText(id)}>{[]}</mi>;
return <mi id={readText(id)} />;
}

function App() {
Expand Down Expand Up @@ -601,7 +603,7 @@ describe('ReactDOMFizzServer', () => {
// @gate experimental
it('can stream into an SVG container', async () => {
function AsyncPath({id}) {
return <path id={readText(id)}>{[]}</path>;
return <path id={readText(id)} />;
}

function App() {
Expand Down

0 comments on commit 909bd65

Please sign in to comment.