@@ -146,7 +146,7 @@ describe('yargs-parser', function () {
146
146
'--other' , '-99' , '-220'
147
147
] , {
148
148
array : 'bounds' ,
149
- narg : { 'other' : 2 }
149
+ narg : { 'other' : 2 }
150
150
} )
151
151
152
152
argv . _ . should . deep . equal ( [ - 33 , - 177 , 33 ] )
@@ -1419,12 +1419,12 @@ describe('yargs-parser', function () {
1419
1419
1420
1420
describe ( 'array' , function ( ) {
1421
1421
it ( 'should group values into an array if the same option is specified multiple times (duplicate-arguments-array=true)' , function ( ) {
1422
- var parse = parser ( [ '-v' , 'a' , '-v' , 'b' , '-v' , 'c' ] , { configuration : { 'duplicate-arguments-array' : true } } )
1422
+ var parse = parser ( [ '-v' , 'a' , '-v' , 'b' , '-v' , 'c' ] , { configuration : { 'duplicate-arguments-array' : true } } )
1423
1423
parse . should . have . property ( 'v' ) . and . deep . equal ( [ 'a' , 'b' , 'c' ] )
1424
1424
parse . should . have . property ( '_' ) . with . length ( 0 )
1425
1425
} )
1426
1426
it ( 'should keep only the last value if the same option is specified multiple times (duplicate-arguments-false)' , function ( ) {
1427
- var parse = parser ( [ '-v' , 'a' , '-v' , 'b' , '-v' , 'c' ] , { configuration : { 'duplicate-arguments-array' : false } } )
1427
+ var parse = parser ( [ '-v' , 'a' , '-v' , 'b' , '-v' , 'c' ] , { configuration : { 'duplicate-arguments-array' : false } } )
1428
1428
parse . should . have . property ( 'v' ) . and . equal ( 'c' )
1429
1429
parse . should . have . property ( '_' ) . with . length ( 0 )
1430
1430
} )
@@ -1503,8 +1503,8 @@ describe('yargs-parser', function () {
1503
1503
var result = parser ( [ '-a=hello' , 'world' , '-b' ,
1504
1504
'33' , '22' , '--foo' , 'red' , 'green' ,
1505
1505
'--bar=cat' , 'dog' ] , {
1506
- array : [ 'a' , 'b' , 'foo' , 'bar' ]
1507
- } )
1506
+ array : [ 'a' , 'b' , 'foo' , 'bar' ]
1507
+ } )
1508
1508
1509
1509
Array . isArray ( result . a ) . should . equal ( true )
1510
1510
result . a . should . include ( 'hello' )
@@ -2166,7 +2166,7 @@ describe('yargs-parser', function () {
2166
2166
}
2167
2167
} )
2168
2168
2169
- parsed [ 'x' ] . should . deep . equal ( { foo : [ 'a' , 'b' ] } )
2169
+ parsed [ 'x' ] . should . deep . equal ( { foo : [ 'a' , 'b' ] } )
2170
2170
} )
2171
2171
} )
2172
2172
@@ -2400,13 +2400,13 @@ describe('yargs-parser', function () {
2400
2400
number : [ 'd' ] ,
2401
2401
count : [ 'e' ] ,
2402
2402
normalize : [ 'f' ] ,
2403
- narg : { g : 2 } ,
2403
+ narg : { g : 2 } ,
2404
2404
coerce : {
2405
2405
h : function ( arg ) {
2406
2406
return arg
2407
2407
}
2408
2408
} ,
2409
- configuration : { 'set-placeholder-key' : true }
2409
+ configuration : { 'set-placeholder-key' : true }
2410
2410
} )
2411
2411
parsed . should . have . property ( 'a' )
2412
2412
expect ( parsed . a ) . to . be . equal ( undefined )
@@ -2427,8 +2427,8 @@ describe('yargs-parser', function () {
2427
2427
it ( 'should not set placeholder for key with a default value' , function ( ) {
2428
2428
var parsed = parser ( [ ] , {
2429
2429
string : [ 'a' ] ,
2430
- default : { a : 'hello' } ,
2431
- configuration : { 'set-placeholder-key' : true }
2430
+ default : { a : 'hello' } ,
2431
+ configuration : { 'set-placeholder-key' : true }
2432
2432
} )
2433
2433
parsed . a . should . equal ( 'hello' )
2434
2434
} )
@@ -2639,7 +2639,7 @@ describe('yargs-parser', function () {
2639
2639
var argv = parser ( [ '--foo' , 'bar' ] , {
2640
2640
array : [ 'a' ] ,
2641
2641
normalize : [ 'a' ] ,
2642
- configObjects : [ { 'a' : [ 'bin/../a.txt' , 'bin/../b.txt' ] } ]
2642
+ configObjects : [ { 'a' : [ 'bin/../a.txt' , 'bin/../b.txt' ] } ]
2643
2643
} )
2644
2644
argv . a . should . deep . equal ( [ 'a.txt' , 'b.txt' ] )
2645
2645
} )
0 commit comments