@samitouri / QOS-React-2 / commits / 661562fc52

Fix outdated test comments (#15892)

Comments for this unit test are confusing because they refer to an earlier version of the same test.

Andrew Clark committed Jun 14, 2019 at 16:51 UTC 661562fc52b211cb39459e413c4c5cd5debaf90f
1 file changed +3 -3
packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js
+3 -3
@@ -2299,7 +2299,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
2299 // Regression test
2300 function App({text}) {
2301 return (
2302 - <Suspense fallback="Outer fallback">
2302 + <Suspense fallback="Loading...">
2303 <AsyncText ms={2000} text={text} />
2304 </Suspense>
2305 );
@@ -2322,7 +2322,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
2322 ]);
2323 expect(root).toMatchRenderedOutput(<span prop="Initial" />);
2324
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
2326 // visible, it should suspend for a bit without committing.
2327 await ReactNoop.act(async () => {
2328 root.render(<App text="First update" />);
@@ -2332,7 +2332,7 @@ describe('ReactSuspenseWithNoopRenderer', () => {
2332 expect(root).toMatchRenderedOutput(<span prop="Initial" />);
2333 });
2334
2335 - // Suspend A. This should also suspend for a JND.
2335 + // Update again. This should also suspend for a bit.
2336 await ReactNoop.act(async () => {
2337 root.render(<App text="Second update" />);
2338