Nit: fix inconsistent spacing in a warning (#16310)

This commit is contained in:
Dan Abramov
2019-08-07 14:30:21 +01:00
committed by GitHub
parent c4f0b93703
commit 9dfe973b52
+2 -2
View File
@@ -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),