Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 94b6f26

Browse files
alonbardavidKent C. Dodds
authored and
Kent C. Dodds
committed
test: remove old use of pathvar in tests that prevented running tests in windows. (#18)
1 parent 22bf76d commit 94b6f26

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"eslint-plugin-mocha": "1.0.0",
4545
"ghooks": "1.0.0",
4646
"istanbul": "0.3.21",
47-
"manage-path": "2.0.0",
4847
"mocha": "2.3.3",
4948
"proxyquire": "1.7.2",
5049
"rimraf": "^2.5.2",

src/index.test.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import chai from 'chai';
22
import sinonChai from 'sinon-chai';
33
import sinon from 'sinon';
44
import proxyquire from 'proxyquire';
5-
import getPathVar from 'manage-path/dist/get-path-var';
65
import assign from 'lodash.assign';
76
chai.use(sinonChai);
87

@@ -59,15 +58,14 @@ describe(`cross-env`, () => {
5958
FOO_ENV: 'foo=bar'
6059
}, 'FOO_ENV="foo=bar"');
6160
});
62-
6361
it(`should do nothing given no command`, () => {
6462
crossEnv([]);
6563
expect(proxied['cross-spawn'].spawn).to.have.not.been.called;
6664
});
6765

6866
function testEnvSetting(expected, ...envSettings) {
6967
const ret = crossEnv([...envSettings, 'echo', 'hello world']);
70-
const env = {[getPathVar()]: process.env[getPathVar()]};
68+
const env = {};
7169
env.APPDATA = process.env.APPDATA;
7270
assign(env, expected);
7371

0 commit comments

Comments
 (0)