@@ -7,7 +7,7 @@ const { version } = require('../package.json');
7
7
describe ( 'cli' , ( ) => {
8
8
it ( 'command not found' , done =>
9
9
cli ( 'notARealCommand' ) . catch ( e => {
10
- assert . equal ( e . message . includes ( 'Command not found' ) , true )
10
+ assert . equal ( e . message . includes ( 'Command not found' ) , true ) ;
11
11
return done ( ) ;
12
12
} ) ) ;
13
13
@@ -17,17 +17,17 @@ describe('cli', () => {
17
17
18
18
// This is necessary because we use --version for other commands like `docs`
19
19
it ( 'should only return version if no command' , ( ) =>
20
- cli ( 'no-such-command' , [ ] , minimist ( [ '--version' ] ) ) . then ( ( ) => {
21
- throw new Error ( 'Should not get here' ) ;
22
- } ) . catch ( ( ) => {
23
- // This can be ignored as it's just going to be
24
- // a command not found error
25
- } ) ) ;
20
+ cli ( 'no-such-command' , [ ] , minimist ( [ '--version' ] ) )
21
+ . then ( ( ) => {
22
+ throw new Error ( 'Should not get here' ) ;
23
+ } )
24
+ . catch ( ( ) => {
25
+ // This can be ignored as it's just going to be
26
+ // a command not found error
27
+ } ) ) ;
26
28
} ) ;
27
29
28
30
describe ( '--help' , ( ) => {
29
- it ( 'should print help and not error' , ( ) =>
30
- cli ( '' , [ ] , minimist ( [ '--help' ] ) )
31
- ) ;
31
+ it ( 'should print help and not error' , ( ) => cli ( '' , [ ] , minimist ( [ '--help' ] ) ) ) ;
32
32
} ) ;
33
33
} ) ;
0 commit comments