Skip to content

Commit

Permalink
chore: change template literal
Browse files Browse the repository at this point in the history
  • Loading branch information
zhamujun committed Sep 19, 2023
1 parent c861be3 commit 6309b05
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('generate config command', () => {
assert.equal(generateClientConfigMock.mock.callCount(), 1);
assert.deepEqual(
generateClientConfigMock.mock.calls[0].arguments[1],
path.join(process.cwd(), configFileName + '.' + formatChoices[0])
path.join(process.cwd(), `${configFileName}.${formatChoices[0]}`)
);
});

Expand All @@ -61,7 +61,7 @@ describe('generate config command', () => {
assert.equal(generateClientConfigMock.mock.callCount(), 1);
assert.deepStrictEqual(
generateClientConfigMock.mock.calls[0].arguments[1],
path.join(process.cwd(), configFileName + '.' + formatChoices[0])
path.join(process.cwd(), `${configFileName}.${formatChoices[0]}`)
);
});

Expand All @@ -77,7 +77,7 @@ describe('generate config command', () => {
assert.equal(generateClientConfigMock.mock.callCount(), 1);
assert.deepStrictEqual(
generateClientConfigMock.mock.calls[0].arguments[1],
path.join(process.cwd(), configFileName + '.' + formatChoices[0])
path.join(process.cwd(), `${configFileName}.${formatChoices[0]}`)
);
});

Expand All @@ -98,7 +98,7 @@ describe('generate config command', () => {
);
assert.equal(
normalizedPath,
path.join('/', 'foo', 'bar', configFileName + '.' + formatChoices[2])
path.join('/', 'foo', 'bar', `${configFileName}.${formatChoices[2]}`)
);
});

Expand Down

0 comments on commit 6309b05

Please sign in to comment.