()
| 16 | |
| 17 | describe('Help.configureHelp() overrides of style methods', () => { |
| 18 | function makeProgram() { |
| 19 | const program = new Command('program') |
| 20 | .description('program description') |
| 21 | .argument('<file>', 'arg description') |
| 22 | .configureOutput({ |
| 23 | getOutHasColors: () => true, // avoid interactions with testing environment |
| 24 | }); |
| 25 | program |
| 26 | .command('subcommand') |
| 27 | .description('sub description') |
| 28 | .option('--suboption') |
| 29 | .argument('[subarg]'); |
| 30 | |
| 31 | return program; |
| 32 | } |
| 33 | |
| 34 | const plainHelpInformation = makeProgram().helpInformation(); |
| 35 |
no test coverage detected