Skip to content

Commit 9b66d8c

Browse files
committed
update test
1 parent fd9457f commit 9b66d8c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/core/src/test/shared/env/resolveEnv.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
import assert from 'assert'
77
import { mergeResolvedShellPath } from '../../../shared/env/resolveEnv'
88
import sinon from 'sinon'
9-
import { EnvironmentVariables } from '../../../shared/environmentVariables'
109

1110
describe('resolveEnv', async function () {
1211
let sandbox: sinon.SinonSandbox
1312
beforeEach(function () {
1413
sandbox = sinon.createSandbox()
15-
sandbox.stub(process, 'env').value({
16-
platform: 'win32',
17-
} as EnvironmentVariables)
14+
sandbox.stub(process, 'platform').value('win32')
1815
})
1916

2017
afterEach(function () {
@@ -24,7 +21,8 @@ describe('resolveEnv', async function () {
2421
describe('resolveWindows', async function () {
2522
it('mergeResolvedShellPath should not change path on windows', async function () {
2623
const env = await mergeResolvedShellPath(process.env)
27-
assert.strictEqual(env.path, process.env.path)
24+
assert(env.PATH)
25+
assert.strictEqual(env, process.env)
2826
})
2927
})
3028
})

0 commit comments

Comments
 (0)