Skip to content

Commit f97c87b

Browse files
Fix tests
There is no need to explicitly use npm.cmd on Windows
1 parent dd03c3f commit f97c87b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/npm-command.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
var npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
4-
53
module.exports = function (command, globals) {
64
var hasGlobals = globals && globals.length;
75
var args = [command, '--color=always'];
@@ -11,7 +9,7 @@ module.exports = function (command, globals) {
119
}
1210

1311
return {
14-
command: npm,
12+
command: 'npm',
1513
args: args,
1614
screen: 'npm ' + command + (hasGlobals ? ' -g ' + globals.join(' ') : '')
1715
};

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('npm command', function (t) {
1818
t.same(installGlobal, {
1919
command: 'npm',
2020
args: ['install', '--color=always', 'bower'],
21-
screen: 'npm install -g'
21+
screen: 'npm install -g bower'
2222
}, 'globals are correct');
2323
t.end();
2424
});

0 commit comments

Comments
 (0)