@@ -45,26 +45,26 @@ describe('implicit help', () => {
45
45
expect ( helper . optionTerm ( implicitHelp ) ) . toEqual ( '-h, --help' ) ;
46
46
} ) ;
47
47
48
- test ( 'when short flag obscured then help term is --help' , ( ) => {
49
- const program = new commander . Command ( ) ;
50
- program . addOption ( new commander . Option ( '-h, --huge' ) . hideHelp ( ) ) ;
51
- const helper = new commander . Help ( ) ;
52
- const implicitHelp = helper . visibleOptions ( program ) [ 0 ] ;
53
- expect ( helper . optionTerm ( implicitHelp ) ) . toEqual ( '--help' ) ;
54
- } ) ;
48
+ // test('when short flag obscured then help term is --help', () => {
49
+ // const program = new commander.Command();
50
+ // program.addOption(new commander.Option('-h, --huge').hideHelp());
51
+ // const helper = new commander.Help();
52
+ // const implicitHelp = helper.visibleOptions(program)[0];
53
+ // expect(helper.optionTerm(implicitHelp)).toEqual('--help');
54
+ // });
55
55
56
- test ( 'when long flag obscured then help term is --h' , ( ) => {
57
- const program = new commander . Command ( ) ;
58
- program . addOption ( new commander . Option ( '-H, --help' ) . hideHelp ( ) ) ;
59
- const helper = new commander . Help ( ) ;
60
- const implicitHelp = helper . visibleOptions ( program ) [ 0 ] ;
61
- expect ( helper . optionTerm ( implicitHelp ) ) . toEqual ( '-h' ) ;
62
- } ) ;
56
+ // test('when long flag obscured then help term is --h', () => {
57
+ // const program = new commander.Command();
58
+ // program.addOption(new commander.Option('-H, --help').hideHelp());
59
+ // const helper = new commander.Help();
60
+ // const implicitHelp = helper.visibleOptions(program)[0];
61
+ // expect(helper.optionTerm(implicitHelp)).toEqual('-h');
62
+ // });
63
63
64
- test ( 'when help flags obscured then implicit help hidden' , ( ) => {
65
- const program = new commander . Command ( ) ;
66
- program . addOption ( new commander . Option ( '-h, --help' ) . hideHelp ( ) ) ;
67
- const helper = new commander . Help ( ) ;
68
- expect ( helper . visibleOptions ( program ) ) . toEqual ( [ ] ) ;
69
- } ) ;
64
+ // test('when help flags obscured then implicit help hidden', () => {
65
+ // const program = new commander.Command();
66
+ // program.addOption(new commander.Option('-h, --help').hideHelp());
67
+ // const helper = new commander.Help();
68
+ // expect(helper.visibleOptions(program)).toEqual([]);
69
+ // });
70
70
} ) ;
0 commit comments