File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,17 +90,15 @@ describe("parseRawArgs", () => {
9090 } ) ;
9191
9292 it ( "handles arguments with no values" , ( ) => {
93- const args = [ "--name" , "--age" , "-- specified", "--any" ] ;
94- const opts = { string : [ "name" ] , number : [ "age" ] , boolean : [ "specified" ] } ;
93+ const args = [ "--name" , "--specified" , "--any" ] ;
94+ const opts = { string : [ "name" ] , boolean : [ "specified" ] } ;
9595 const result = parseRawArgs ( args , opts ) ;
9696
9797 expect ( "name" in result ) . toBeTruthy ( ) ;
98- expect ( "age" in result ) . toBeTruthy ( ) ;
9998 expect ( "specified" in result ) . toBeTruthy ( ) ;
10099 expect ( "any" in result ) . toBeTruthy ( ) ;
101100
102101 expect ( result . name ) . toBeUndefined ( ) ;
103- expect ( result . age ) . toBeUndefined ( ) ;
104102 expect ( result . specified ) . toBeTruthy ( ) ;
105103 expect ( result . any ) . toBeTruthy ( ) ;
106104 } ) ;
You can’t perform that action at this time.
0 commit comments