Skip to content

Commit 8723e77

Browse files
authored
Fix a string interpolation typo in ReactHooks test (#22174)
1 parent 0ba0564 commit 8723e77

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1591,8 +1591,7 @@ describe('ReactHooks', () => {
15911591
}
15921592
});
15931593

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`, () => {
15961595
function App(props) {
15971596
/* eslint-disable no-unused-vars */
15981597
if (props.update) {
@@ -1646,8 +1645,7 @@ describe('ReactHooks', () => {
16461645
.replace('use', '')
16471646
.replace('Helper', '');
16481647

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`, () => {
16511649
function App(props) {
16521650
/* eslint-disable no-unused-vars */
16531651
if (props.update) {

0 commit comments

Comments
 (0)