File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
'use strict' ;
4
4
5
- const ace = require ( '../core/ace.js' ) ;
6
-
7
5
const fs = require ( 'fs' ) ;
8
6
const meow = require ( 'meow' ) ;
9
7
const path = require ( 'path' ) ;
8
+ const winston = require ( 'winston' ) ;
9
+
10
+ const ace = require ( '../core/ace.js' ) ;
10
11
const logger = require ( '../core/logger.js' ) ;
11
12
12
13
const cli = meow ( `
Original file line number Diff line number Diff line change 1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` test existing output 1` ] = `
4
- "Output directory is not empty.
4
+ "[33mwarn[39m: Output directory is not empty.
5
5
6
6
Running Ace would override the following files or directories:
7
7
@@ -38,9 +38,10 @@ exports[`test help 1`] = `
38
38
"
39
39
`;
40
40
41
- exports[`test no input 1`] = `
42
- "Input required
41
+ exports[`test no input 1`] = `"[31merror[39m: Input required"`;
43
42
43
+ exports[`test no input 2`] = `
44
+ "
44
45
Ace by DAISY, an Accessibility Checker for EPUB
45
46
46
47
Usage: ace [options] <input >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const path = require('path');
9
9
test ( 'test no input' , ( ) => {
10
10
const { stdout, stderr, status } = ace ( [ ] ) ;
11
11
expect ( status ) . toBe ( 1 ) ;
12
- expect ( stderr ) . toBe ( '' ) ;
12
+ expect ( stderr . trim ( ) ) . toMatchSnapshot ( ) ;
13
13
expect ( stdout ) . toMatchSnapshot ( ) ;
14
14
} ) ;
15
15
You can’t perform that action at this time.
0 commit comments