@samitouri / QOS-React-2 / commits / 8723e772b9

Fix a string interpolation typo in ReactHooks test (#22174)

Matt Hargett committed Aug 26, 2021 at 12:35 UTC 8723e772b98d1a61aa0170981483c4da1e9237c5
1 file changed +2 -4
packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js
+2 -4
@@ -1591,8 +1591,7 @@ describe('ReactHooks', () => {
1591 }
1592 });
1593
1594 - it(`warns when more hooks (${(hookNameA,
1595 - hookNameB)}) are used during update than mount`, () => {
1594 + it(`warns when more hooks (${hookNameA}, ${hookNameB}) are used during update than mount`, () => {
1595 function App(props) {
1596 /* eslint-disable no-unused-vars */
1597 if (props.update) {
@@ -1646,8 +1645,7 @@ describe('ReactHooks', () => {
1645 .replace('use', '')
1646 .replace('Helper', '');
1647
1649 - it(`warns when fewer hooks (${(hookNameA,
1650 - hookNameB)}) are used during update than mount`, () => {
1648 + it(`warns when fewer hooks (${hookNameA}, ${hookNameB}) are used during update than mount`, () => {
1649 function App(props) {
1650 /* eslint-disable no-unused-vars */
1651 if (props.update) {