Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-zhangg committed Nov 6, 2024
1 parent 6f0d2b5 commit add2e45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/test/shared/env/resolveEnv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ import path from 'path'

describe('resolveEnv', async function () {
let sandbox: sinon.SinonSandbox
let originalPlatform = process.platform
beforeEach(function () {
sandbox = sinon.createSandbox()
sandbox.stub(process, 'platform').value('win32')
})

afterEach(function () {
Expand Down Expand Up @@ -57,7 +55,7 @@ describe('resolveEnv', async function () {
describe('resolveUnix', async function () {
const originalEnv = { ...process.env }
// skip mac test on windows
if (originalPlatform !== 'win32') {
if (process.platform !== 'win32') {
it('mergeResolvedShellPath should get path on mac/unix', async function () {
sandbox.stub(process.env, 'PATH').value('')
// stub the resolve Env logic cause this is platform sensitive.
Expand Down

0 comments on commit add2e45

Please sign in to comment.