File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const RuntimeBaseCommand = require('../../RuntimeBaseCommand')
1616class IndexCommand extends RuntimeBaseCommand {
1717 async run ( ) {
1818 const help = new Help ( this . config )
19- await help . showHelp ( [ 'runtime' , '--help' ] )
19+ await help . showHelp ( [ this . id ] )
2020 }
2121}
2222
Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ describe('instance methods', () => {
5252 test ( 'returns help file for runtime command' , ( ) => {
5353 const spy = jest . spyOn ( Help . prototype , 'showHelp' ) . mockReturnValue ( true )
5454 command . config = { }
55+ command . id = 'runtime' // Set the command ID for the test
5556 return command . run ( ) . then ( ( ) => {
56- expect ( spy ) . toHaveBeenCalledWith ( [ 'runtime' , '--help' ] )
57+ expect ( spy ) . toHaveBeenCalledWith ( [ 'runtime' ] )
5758 } )
5859 } )
5960 } )
You can’t perform that action at this time.
0 commit comments