From 6309b05b22ae31a86baa614c35992fca4a70fef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MJ=E2=98=94?= Date: Tue, 19 Sep 2023 09:35:37 -0700 Subject: [PATCH] chore: change template literal --- .../generate/config/generate_config_command.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]}`) ); });