Skip to content

Commit 661562f

Browse files
authored
Fix outdated test comments (#15892)
Comments for this unit test are confusing because they refer to an earlier version of the same test.
1 parent 788da69 commit 661562f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
22992299
// Regression test
23002300
function App({text}) {
23012301
return (
2302-
<Suspense fallback="Outer fallback">
2302+
<Suspense fallback="Loading...">
23032303
<AsyncText ms={2000} text={text} />
23042304
</Suspense>
23052305
);
@@ -2322,7 +2322,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
23222322
]);
23232323
expect(root).toMatchRenderedOutput(<span prop="Initial" />);
23242324

2325-
// Suspend B. Since showing a fallback would hide content that's already
2325+
// Update. Since showing a fallback would hide content that's already
23262326
// visible, it should suspend for a bit without committing.
23272327
await ReactNoop.act(async () => {
23282328
root.render(<App text="First update" />);
@@ -2332,7 +2332,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
23322332
expect(root).toMatchRenderedOutput(<span prop="Initial" />);
23332333
});
23342334

2335-
// Suspend A. This should also suspend for a JND.
2335+
// Update again. This should also suspend for a bit.
23362336
await ReactNoop.act(async () => {
23372337
root.render(<App text="Second update" />);
23382338

0 commit comments

Comments
 (0)