@@ -46,7 +46,7 @@ describe('utils', () => {
4646 'source-root' ,
4747 'response-file' ,
4848 ] ;
49- const result = validateArguments ( args , RunMode . INDEX_FILES ) ;
49+ const result = validateArguments ( args ) ;
5050 expect ( result . isValid ) . toBe ( true ) ;
5151 expect ( result . args ) . toEqual ( {
5252 runMode : RunMode . INDEX_FILES ,
@@ -57,7 +57,7 @@ describe('utils', () => {
5757
5858 it ( 'should invalidate index-files mode with missing response file' , ( ) => {
5959 const args = [ 'node' , EXTRACTOR_SCRIPT_NAME , RunMode . INDEX_FILES , 'source-root' ] ;
60- const result = validateArguments ( args , RunMode . INDEX_FILES ) ;
60+ const result = validateArguments ( args ) ;
6161 expect ( result . isValid ) . toBe ( false ) ;
6262 expect ( result . usageMessage ) . toContain ( '<response-file>' ) ;
6363 } ) ;
@@ -71,7 +71,7 @@ describe('utils', () => {
7171 'source-root' ,
7272 'response-file' ,
7373 ] ;
74- const resultWithResponse = validateArguments ( argsWithResponse , RunMode . DEBUG_PARSER ) ;
74+ const resultWithResponse = validateArguments ( argsWithResponse ) ;
7575 expect ( resultWithResponse . isValid ) . toBe ( true ) ;
7676 expect ( resultWithResponse . args ) . toEqual ( {
7777 runMode : RunMode . DEBUG_PARSER ,
@@ -86,7 +86,7 @@ describe('utils', () => {
8686 RunMode . DEBUG_PARSER ,
8787 'source-root' ,
8888 ] ;
89- const resultWithoutResponse = validateArguments ( argsWithoutResponse , RunMode . DEBUG_PARSER ) ;
89+ const resultWithoutResponse = validateArguments ( argsWithoutResponse ) ;
9090 expect ( resultWithoutResponse . isValid ) . toBe ( true ) ;
9191 expect ( resultWithoutResponse . args ) . toEqual ( {
9292 runMode : RunMode . DEBUG_PARSER ,
@@ -97,7 +97,7 @@ describe('utils', () => {
9797
9898 it ( `should validate minimum required arguments for runMode=${ RunMode . AUTOBUILD } ` , ( ) => {
9999 const args = [ 'node' , EXTRACTOR_SCRIPT_NAME , RunMode . AUTOBUILD , 'source-root' ] ;
100- const result = validateArguments ( args , RunMode . AUTOBUILD ) ;
100+ const result = validateArguments ( args ) ;
101101 expect ( result . isValid ) . toBe ( true ) ;
102102 expect ( result . args ) . toEqual ( {
103103 runMode : RunMode . AUTOBUILD ,
@@ -108,7 +108,7 @@ describe('utils', () => {
108108
109109 it ( `should validate minimum required arguments for runMode=${ RunMode . DEBUG_PARSER } ` , ( ) => {
110110 const args = [ 'node' , EXTRACTOR_SCRIPT_NAME , RunMode . DEBUG_PARSER , 'source-root' ] ;
111- const result = validateArguments ( args , RunMode . DEBUG_PARSER ) ;
111+ const result = validateArguments ( args ) ;
112112 expect ( result . isValid ) . toBe ( true ) ;
113113 expect ( result . usageMessage ) . toContain (
114114 `${ RunMode . DEBUG_PARSER } <source-root> [<response-file>]` ,
@@ -123,7 +123,7 @@ describe('utils', () => {
123123 'source-root' ,
124124 'response-file' ,
125125 ] ;
126- const result = validateArguments ( args , RunMode . INDEX_FILES ) ;
126+ const result = validateArguments ( args ) ;
127127 expect ( result . isValid ) . toBe ( true ) ;
128128 expect ( result . usageMessage ) . toContain ( `${ RunMode . INDEX_FILES } <source-root> <response-file>` ) ;
129129 expect ( result . args ) . toEqual ( {
@@ -135,7 +135,7 @@ describe('utils', () => {
135135
136136 it ( 'should invalidate when run mode is not valid' , ( ) => {
137137 const args = [ 'node' , EXTRACTOR_SCRIPT_NAME , 'invalid-mode' , 'source-root' ] ;
138- const result = validateArguments ( args , RunMode . AUTOBUILD ) ;
138+ const result = validateArguments ( args ) ;
139139 expect ( result . isValid ) . toBe ( false ) ;
140140 expect ( result . usageMessage ) . toContain ( 'Invalid run mode' ) ;
141141 expect ( result . usageMessage ) . toContain ( 'Supported run modes:' ) ;
0 commit comments