From 0dbb2cbbfac2b2dae22f4a215b107d82b31c6429 Mon Sep 17 00:00:00 2001 From: Matt Hargett Date: Wed, 25 Aug 2021 12:04:43 -0700 Subject: [PATCH] Fix a string interpolation typo that made test names incorrect, causing confusion about which variant is failing. --- .../src/__tests__/ReactHooks-test.internal.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js b/packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js index 53fb9c07589e4..9e39b35fc1ba2 100644 --- a/packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js +++ b/packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js @@ -1591,8 +1591,7 @@ describe('ReactHooks', () => { } }); - it(`warns when more hooks (${(hookNameA, - hookNameB)}) are used during update than mount`, () => { + it(`warns when more hooks (${hookNameA}, ${hookNameB}) are used during update than mount`, () => { function App(props) { /* eslint-disable no-unused-vars */ if (props.update) { @@ -1646,8 +1645,7 @@ describe('ReactHooks', () => { .replace('use', '') .replace('Helper', ''); - it(`warns when fewer hooks (${(hookNameA, - hookNameB)}) are used during update than mount`, () => { + it(`warns when fewer hooks (${hookNameA}, ${hookNameB}) are used during update than mount`, () => { function App(props) { /* eslint-disable no-unused-vars */ if (props.update) {