@@ -22,7 +22,7 @@ function createParser(): DynamicCommandLineParser {
2222 } ) ;
2323
2424 const action : DynamicCommandLineAction = new DynamicCommandLineAction ( {
25- actionName : 'do-job' ,
25+ actionName : 'do:the -job' ,
2626 summary : 'does the job' ,
2727 documentation : 'a longer description'
2828 } ) ;
@@ -133,17 +133,17 @@ describe('CommandLineParameter', () => {
133133
134134 it ( 'prints the action help' , ( ) => {
135135 const commandLineParser : CommandLineParser = createParser ( ) ;
136- const helpText : string = colors . stripColors ( commandLineParser . getAction ( 'do-job' ) . renderHelpText ( ) ) ;
136+ const helpText : string = colors . stripColors ( commandLineParser . getAction ( 'do:the -job' ) . renderHelpText ( ) ) ;
137137 expect ( helpText ) . toMatchSnapshot ( ) ;
138138 } ) ;
139139
140140 it ( 'parses an input with ALL parameters' , ( ) => {
141141 const commandLineParser : CommandLineParser = createParser ( ) ;
142- const action : CommandLineAction = commandLineParser . getAction ( 'do-job' ) ;
142+ const action : CommandLineAction = commandLineParser . getAction ( 'do:the -job' ) ;
143143
144144 const args : string [ ] = [
145145 '--global-flag' ,
146- 'do-job' ,
146+ 'do:the -job' ,
147147 '--choice' , 'two' ,
148148 '--flag' ,
149149 '--integer' , '123' ,
@@ -209,8 +209,8 @@ describe('CommandLineParameter', () => {
209209
210210 it ( 'parses an input with NO parameters' , ( ) => {
211211 const commandLineParser : CommandLineParser = createParser ( ) ;
212- const action : CommandLineAction = commandLineParser . getAction ( 'do-job' ) ;
213- const args : string [ ] = [ 'do-job' , '--integer-required' , '123' ] ;
212+ const action : CommandLineAction = commandLineParser . getAction ( 'do:the -job' ) ;
213+ const args : string [ ] = [ 'do:the -job' , '--integer-required' , '123' ] ;
214214
215215 return commandLineParser . execute ( args ) . then ( ( ) => {
216216 expect ( commandLineParser . selectedAction ) . toBe ( action ) ;
0 commit comments