Skip to content

Commit

Permalink
Fix a string interpolation typo that made test names incorrect, causi…
Browse files Browse the repository at this point in the history
…ng confusion about which variant is failing.
  • Loading branch information
matthargett committed Aug 25, 2021
1 parent b996468 commit 0dbb2cb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0dbb2cb

Please sign in to comment.