diff --git a/packages/cli/src/commands/generate/config/generate_config_command.test.ts b/packages/cli/src/commands/generate/config/generate_config_command.test.ts index c3cd7d8f21..d013b513db 100644 --- a/packages/cli/src/commands/generate/config/generate_config_command.test.ts +++ b/packages/cli/src/commands/generate/config/generate_config_command.test.ts @@ -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]}`) ); }); @@ -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]}`) ); }); @@ -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]}`) ); }); @@ -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]}`) ); });