File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/core/src/test/shared/env Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 66import assert from 'assert'
77import { mergeResolvedShellPath } from '../../../shared/env/resolveEnv'
88import sinon from 'sinon'
9- import { EnvironmentVariables } from '../../../shared/environmentVariables'
109
1110describe ( '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} )
You can’t perform that action at this time.
0 commit comments