From 661562fc52b211cb39459e413c4c5cd5debaf90f Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Fri, 14 Jun 2019 16:51:27 -0700 Subject: [PATCH] Fix outdated test comments (#15892) Comments for this unit test are confusing because they refer to an earlier version of the same test. --- .../ReactSuspenseWithNoopRenderer-test.internal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js b/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js index c1fab933da..e0df3b99c6 100644 --- a/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js +++ b/packages/react-reconciler/src/__tests__/ReactSuspenseWithNoopRenderer-test.internal.js @@ -2299,7 +2299,7 @@ describe('ReactSuspenseWithNoopRenderer', () => { // Regression test function App({text}) { return ( - + ); @@ -2322,7 +2322,7 @@ describe('ReactSuspenseWithNoopRenderer', () => { ]); expect(root).toMatchRenderedOutput(); - // 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(); @@ -2332,7 +2332,7 @@ describe('ReactSuspenseWithNoopRenderer', () => { expect(root).toMatchRenderedOutput(); }); - // Suspend A. This should also suspend for a JND. + // Update again. This should also suspend for a bit. await ReactNoop.act(async () => { root.render();