1
- 'use strict' ;
2
1
const expect = require ( 'chai' ) . expect ;
3
2
const sinon = require ( 'sinon' ) ;
4
3
const stripAnsi = require ( 'strip-ansi' ) ;
@@ -37,7 +36,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
37
36
'../../../../package' : cliPackage
38
37
} ) . task ;
39
38
40
- return nodeVersion ( ) . then ( ( ) => {
39
+ return nodeVersion ( { } , { } ) . then ( ( ) => {
41
40
expect ( false , 'error should be thrown' ) . to . be . true ;
42
41
} ) . catch ( ( error ) => {
43
42
expect ( error ) . to . be . an . instanceof ( errors . SystemError ) ;
@@ -62,7 +61,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
62
61
'./check-directory' : checkDirectoryStub
63
62
} ) . task ;
64
63
65
- return nodeVersion ( { local : true } ) . then ( ( ) => {
64
+ return nodeVersion ( { local : true } , { } ) . then ( ( ) => {
66
65
expect ( checkDirectoryStub . called ) . to . be . false ;
67
66
} ) ;
68
67
} ) ;
@@ -81,7 +80,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
81
80
'./check-directory' : checkDirectoryStub
82
81
} ) . task ;
83
82
84
- return nodeVersion ( { local : true } ) . then ( ( ) => {
83
+ return nodeVersion ( { local : true } , { } ) . then ( ( ) => {
85
84
expect ( checkDirectoryStub . called ) . to . be . false ;
86
85
} ) ;
87
86
} ) ;
@@ -100,7 +99,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
100
99
'./check-directory' : checkDirectoryStub
101
100
} ) . task ;
102
101
103
- return nodeVersion ( { local : true } ) . then ( ( ) => {
102
+ return nodeVersion ( { local : true } , { } ) . then ( ( ) => {
104
103
expect ( checkDirectoryStub . called ) . to . be . false ;
105
104
} ) ;
106
105
} ) ;
@@ -118,7 +117,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
118
117
'./check-directory' : checkDirectoryStub
119
118
} ) . task ;
120
119
121
- return nodeVersion ( { local : true } ) . then ( ( ) => {
120
+ return nodeVersion ( { local : true } , { } ) . then ( ( ) => {
122
121
expect ( checkDirectoryStub . called ) . to . be . false ;
123
122
} ) ;
124
123
} ) ;
@@ -137,7 +136,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
137
136
'./check-directory' : checkDirectoryStub
138
137
} ) . task ;
139
138
140
- return nodeVersion ( ctx ) . then ( ( ) => {
139
+ return nodeVersion ( ctx , { } ) . then ( ( ) => {
141
140
expect ( checkDirectoryStub . called ) . to . be . false ;
142
141
} ) ;
143
142
} ) ;
@@ -156,7 +155,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
156
155
'./check-directory' : checkDirectoryStub
157
156
} ) . task ;
158
157
159
- return nodeVersion ( ctx ) . then ( ( ) => {
158
+ return nodeVersion ( ctx , { } ) . then ( ( ) => {
160
159
expect ( checkDirectoryStub . called ) . to . be . false ;
161
160
} ) ;
162
161
} ) ;
@@ -175,7 +174,7 @@ describe('Unit: Doctor Checks > nodeVersion', function () {
175
174
'./check-directory' : checkDirectoryStub
176
175
} ) . task ;
177
176
178
- return nodeVersion ( ctx ) . then ( ( ) => {
177
+ return nodeVersion ( ctx , { } ) . then ( ( ) => {
179
178
expect ( checkDirectoryStub . calledOnce ) . to . be . true ;
180
179
expect ( checkDirectoryStub . calledWith ( process . argv [ 0 ] ) ) . to . be . true ;
181
180
} ) ;
0 commit comments