Skip to content

Commit

Permalink
Nit: fix inconsistent spacing in a warning (#16310)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Aug 7, 2019
1 parent c4f0b93 commit 9dfe973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberWorkLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -2505,12 +2505,12 @@ export function warnIfNotScopedWithMatchingAct(fiber: Fiber): void {
'Be sure to use the matching version of act() corresponding to your renderer:\n\n' +
'// for react-dom:\n' +
"import {act} from 'react-dom/test-utils';\n" +
'//...\n' +
'// ...\n' +
'act(() => ...);\n\n' +
'// for react-test-renderer:\n' +
"import TestRenderer from 'react-test-renderer';\n" +
'const {act} = TestRenderer;\n' +
'//...\n' +
'// ...\n' +
'act(() => ...);' +
'%s',
getStackByFiberInDevAndProd(fiber),
Expand Down

0 comments on commit 9dfe973

Please sign in to comment.