@@ -165,8 +165,8 @@ describe("TaskManagerImplementation", () => {
165
165
assert . equal ( task1 . pluginId , "plugin1" ) ;
166
166
assert . equal ( task1 . description , "description2" ) ;
167
167
// Original args should have not been removed
168
- assert . ok ( task1 . options . get ( "arg1" ) , "Should have arg1" ) ;
169
- assert . ok ( task1 . options . get ( "flag1" ) , "Should have flag1" ) ;
168
+ assert . notEqual ( task1 . options . get ( "arg1" ) , undefined , "Should have arg1" ) ;
169
+ assert . notEqual ( task1 . options . get ( "flag1" ) , undefined , "Should have flag1" ) ;
170
170
assert . ok (
171
171
task1 . positionalArguments . some ( ( p ) => p . name === "posArg1" ) ,
172
172
"Should have posArg1" ,
@@ -176,8 +176,8 @@ describe("TaskManagerImplementation", () => {
176
176
"Should have varArg1" ,
177
177
) ;
178
178
// New args should be added by the overrides
179
- assert . ok ( task1 . options . get ( "arg2" ) , "Should have arg2" ) ;
180
- assert . ok ( task1 . options . get ( "flag2" ) , "Should have flag2" ) ;
179
+ assert . notEqual ( task1 . options . get ( "arg2" ) , undefined , "Should have arg2" ) ;
180
+ assert . notEqual ( task1 . options . get ( "flag2" ) , undefined , "Should have flag2" ) ;
181
181
// Should have 2 actions
182
182
assert . equal ( task1 . actions . length , 2 ) ;
183
183
assert . equal ( task1 . actions [ 0 ] . pluginId , "plugin1" ) ;
@@ -220,8 +220,8 @@ describe("TaskManagerImplementation", () => {
220
220
assert . equal ( task1 . pluginId , "plugin1" ) ;
221
221
assert . equal ( task1 . description , "description2" ) ;
222
222
// Original args should have not been removed
223
- assert . ok ( task1 . options . get ( "arg1" ) , "Should have arg1" ) ;
224
- assert . ok ( task1 . options . get ( "flag1" ) , "Should have flag1" ) ;
223
+ assert . notEqual ( task1 . options . get ( "arg1" ) , undefined , "Should have arg1" ) ;
224
+ assert . notEqual ( task1 . options . get ( "flag1" ) , undefined , "Should have flag1" ) ;
225
225
assert . ok (
226
226
task1 . positionalArguments . some ( ( p ) => p . name === "posArg1" ) ,
227
227
"Should have posArg1" ,
@@ -231,8 +231,8 @@ describe("TaskManagerImplementation", () => {
231
231
"Should have varArg1" ,
232
232
) ;
233
233
// New args should be added by the overrides
234
- assert . ok ( task1 . options . get ( "arg2" ) , "Should have arg2" ) ;
235
- assert . ok ( task1 . options . get ( "flag2" ) , "Should have flag2" ) ;
234
+ assert . notEqual ( task1 . options . get ( "arg2" ) , undefined , "Should have arg2" ) ;
235
+ assert . notEqual ( task1 . options . get ( "flag2" ) , undefined , "Should have flag2" ) ;
236
236
// Should have 2 actions
237
237
assert . equal ( task1 . actions . length , 2 ) ;
238
238
assert . equal ( task1 . actions [ 0 ] . pluginId , "plugin1" ) ;
@@ -282,8 +282,8 @@ describe("TaskManagerImplementation", () => {
282
282
assert . equal ( task1 . pluginId , "plugin1" ) ;
283
283
assert . equal ( task1 . description , "description3" ) ;
284
284
// Original args should have not been removed
285
- assert . ok ( task1 . options . get ( "arg1" ) , "Should have arg1" ) ;
286
- assert . ok ( task1 . options . get ( "flag1" ) , "Should have flag1" ) ;
285
+ assert . notEqual ( task1 . options . get ( "arg1" ) , undefined , "Should have arg1" ) ;
286
+ assert . notEqual ( task1 . options . get ( "flag1" ) , undefined , "Should have flag1" ) ;
287
287
assert . ok (
288
288
task1 . positionalArguments . some ( ( p ) => p . name === "posArg1" ) ,
289
289
"Should have posArg1" ,
@@ -293,10 +293,10 @@ describe("TaskManagerImplementation", () => {
293
293
"Should have varArg1" ,
294
294
) ;
295
295
// New args should be added by the overrides
296
- assert . ok ( task1 . options . get ( "arg2" ) , "Should have arg2" ) ;
297
- assert . ok ( task1 . options . get ( "flag2" ) , "Should have flag2" ) ;
298
- assert . ok ( task1 . options . get ( "arg3" ) , "Should have arg3" ) ;
299
- assert . ok ( task1 . options . get ( "flag3" ) , "Should have flag3" ) ;
296
+ assert . notEqual ( task1 . options . get ( "arg2" ) , undefined , "Should have arg2" ) ;
297
+ assert . notEqual ( task1 . options . get ( "flag2" ) , undefined , "Should have flag2" ) ;
298
+ assert . notEqual ( task1 . options . get ( "arg3" ) , undefined , "Should have arg3" ) ;
299
+ assert . notEqual ( task1 . options . get ( "flag3" ) , undefined , "Should have flag3" ) ;
300
300
// Should have 3 actions
301
301
assert . equal ( task1 . actions . length , 3 ) ;
302
302
assert . equal ( task1 . actions [ 0 ] . pluginId , "plugin1" ) ;
0 commit comments