Fix outdated test comments (#15892)

Comments for this unit test are confusing because they refer to an
earlier version of the same test.
This commit is contained in:
Andrew Clark
2019-06-14 16:51:27 -07:00
committed by GitHub
parent 788da69b74
commit 661562fc52

View File

@@ -2299,7 +2299,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
// Regression test
function App({text}) {
return (
<Suspense fallback="Outer fallback">
<Suspense fallback="Loading...">
<AsyncText ms={2000} text={text} />
</Suspense>
);
@@ -2322,7 +2322,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
]);
expect(root).toMatchRenderedOutput(<span prop="Initial" />);
// Suspend B. Since showing a fallback would hide content that's already
// Update. Since showing a fallback would hide content that's already
// visible, it should suspend for a bit without committing.
await ReactNoop.act(async () => {
root.render(<App text="First update" />);
@@ -2332,7 +2332,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
expect(root).toMatchRenderedOutput(<span prop="Initial" />);
});
// Suspend A. This should also suspend for a JND.
// Update again. This should also suspend for a bit.
await ReactNoop.act(async () => {
root.render(<App text="Second update" />);