Skip to content

Commit 9ab347f

Browse files
committed
✅ Fix tests
1 parent ae97784 commit 9ab347f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/check-engines_spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('check-engines', function() {
2828
beforeEach(function() {
2929
mockChildProcess = new MockChildProcess();
3030
sinon.stub(crossSpawn, 'spawn');
31-
crossSpawn.spawn.withArgs('npm', ['-v'], {shell: true})
31+
crossSpawn.spawn.withArgs('npm', ['--version'], {shell: true})
3232
.returns(mockChildProcess);
3333
});
3434

@@ -195,7 +195,7 @@ describe('check-engines', function() {
195195
var invalidCommandMock = new MockChildProcess();
196196

197197
crossSpawn.spawn.withArgs(
198-
'this-is-not-an-executable', ['-v']
198+
'this-is-not-an-executable', ['--version']
199199
).returns(invalidCommandMock);
200200

201201
process.nextTick(function() {

0 commit comments

Comments
 (0)