File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/core/src/test/shared/env Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ import path from 'path'
1010
1111describe ( 'resolveEnv' , async function ( ) {
1212 let sandbox : sinon . SinonSandbox
13- let originalPlatform = process . platform
1413 beforeEach ( function ( ) {
1514 sandbox = sinon . createSandbox ( )
16- sandbox . stub ( process , 'platform' ) . value ( 'win32' )
1715 } )
1816
1917 afterEach ( function ( ) {
@@ -57,7 +55,7 @@ describe('resolveEnv', async function () {
5755 describe ( 'resolveUnix' , async function ( ) {
5856 const originalEnv = { ...process . env }
5957 // skip mac test on windows
60- if ( originalPlatform !== 'win32' ) {
58+ if ( process . platform !== 'win32' ) {
6159 it ( 'mergeResolvedShellPath should get path on mac/unix' , async function ( ) {
6260 sandbox . stub ( process . env , 'PATH' ) . value ( '' )
6361 // stub the resolve Env logic cause this is platform sensitive.
You can’t perform that action at this time.
0 commit comments