@@ -146,7 +146,7 @@ describe('yargs-parser', function () {
146146 '--other' , '-99' , '-220'
147147 ] , {
148148 array : 'bounds' ,
149- narg : { 'other' : 2 }
149+ narg : { 'other' : 2 }
150150 } )
151151
152152 argv . _ . should . deep . equal ( [ - 33 , - 177 , 33 ] )
@@ -1419,12 +1419,12 @@ describe('yargs-parser', function () {
14191419
14201420 describe ( 'array' , function ( ) {
14211421 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 } } )
14231423 parse . should . have . property ( 'v' ) . and . deep . equal ( [ 'a' , 'b' , 'c' ] )
14241424 parse . should . have . property ( '_' ) . with . length ( 0 )
14251425 } )
14261426 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 } } )
14281428 parse . should . have . property ( 'v' ) . and . equal ( 'c' )
14291429 parse . should . have . property ( '_' ) . with . length ( 0 )
14301430 } )
@@ -1503,8 +1503,8 @@ describe('yargs-parser', function () {
15031503 var result = parser ( [ '-a=hello' , 'world' , '-b' ,
15041504 '33' , '22' , '--foo' , 'red' , 'green' ,
15051505 '--bar=cat' , 'dog' ] , {
1506- array : [ 'a' , 'b' , 'foo' , 'bar' ]
1507- } )
1506+ array : [ 'a' , 'b' , 'foo' , 'bar' ]
1507+ } )
15081508
15091509 Array . isArray ( result . a ) . should . equal ( true )
15101510 result . a . should . include ( 'hello' )
@@ -2166,7 +2166,7 @@ describe('yargs-parser', function () {
21662166 }
21672167 } )
21682168
2169- parsed [ 'x' ] . should . deep . equal ( { foo : [ 'a' , 'b' ] } )
2169+ parsed [ 'x' ] . should . deep . equal ( { foo : [ 'a' , 'b' ] } )
21702170 } )
21712171 } )
21722172
@@ -2400,13 +2400,13 @@ describe('yargs-parser', function () {
24002400 number : [ 'd' ] ,
24012401 count : [ 'e' ] ,
24022402 normalize : [ 'f' ] ,
2403- narg : { g : 2 } ,
2403+ narg : { g : 2 } ,
24042404 coerce : {
24052405 h : function ( arg ) {
24062406 return arg
24072407 }
24082408 } ,
2409- configuration : { 'set-placeholder-key' : true }
2409+ configuration : { 'set-placeholder-key' : true }
24102410 } )
24112411 parsed . should . have . property ( 'a' )
24122412 expect ( parsed . a ) . to . be . equal ( undefined )
@@ -2427,8 +2427,8 @@ describe('yargs-parser', function () {
24272427 it ( 'should not set placeholder for key with a default value' , function ( ) {
24282428 var parsed = parser ( [ ] , {
24292429 string : [ 'a' ] ,
2430- default : { a : 'hello' } ,
2431- configuration : { 'set-placeholder-key' : true }
2430+ default : { a : 'hello' } ,
2431+ configuration : { 'set-placeholder-key' : true }
24322432 } )
24332433 parsed . a . should . equal ( 'hello' )
24342434 } )
@@ -2639,7 +2639,7 @@ describe('yargs-parser', function () {
26392639 var argv = parser ( [ '--foo' , 'bar' ] , {
26402640 array : [ 'a' ] ,
26412641 normalize : [ 'a' ] ,
2642- configObjects : [ { 'a' : [ 'bin/../a.txt' , 'bin/../b.txt' ] } ]
2642+ configObjects : [ { 'a' : [ 'bin/../a.txt' , 'bin/../b.txt' ] } ]
26432643 } )
26442644 argv . a . should . deep . equal ( [ 'a.txt' , 'b.txt' ] )
26452645 } )
0 commit comments