Skip to content

Commit add2e45

Browse files
committed
lint
1 parent 6f0d2b5 commit add2e45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ import path from 'path'
1010

1111
describe('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.

0 commit comments

Comments
 (0)