Skip to content

Commit ff0cf37

Browse files
committed
remove cmd extension
1 parent ba9fa6f commit ff0cf37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/test/shared/utilities/testUtils.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import assert from 'assert'
66
import { createExecutableFile, createTestWorkspaceFolder, envWithNewPath, readEnv, setEnv } from '../../testUtil'
77
import path from 'path'
88
import { fs } from '../../../shared'
9-
import { isWin } from '../../../shared/vscode/env'
109
import { tryRun } from '../../../shared/utilities/pathFind'
1110

1211
describe('envWithNewPath', function () {
@@ -31,7 +30,7 @@ describe('writeEnv', function () {
3130
describe('createExecutableFile', function () {
3231
it('creates a file that can be executed', async function () {
3332
const tempDir = await createTestWorkspaceFolder()
34-
const filePath = path.join(tempDir.uri.fsPath, `exec${isWin() ? '.cmd' : ''}`)
33+
const filePath = path.join(tempDir.uri.fsPath, `exec`)
3534
await createExecutableFile(filePath, '')
3635

3736
const result = await tryRun(filePath, [], 'yes')

0 commit comments

Comments
 (0)