Skip to content

Commit 1b6893b

Browse files
committed
fix(cli): fix broken dependency
1 parent f295c6f commit 1b6893b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/cli/cli.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
'use strict';
44

5-
const ace = require('../core/ace.js');
6-
75
const fs = require('fs');
86
const meow = require('meow');
97
const path = require('path');
8+
const winston = require('winston');
9+
10+
const ace = require('../core/ace.js');
1011
const logger = require('../core/logger.js');
1112

1213
const cli = meow(`

tests/__tests__/__snapshots__/cli.test.js.snap

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`test existing output 1`] = `
4-
"Output directory is not empty.
4+
"[33mwarn[39m: Output directory is not empty.
55
66
Running Ace would override the following files or directories:
77
@@ -38,9 +38,10 @@ exports[`test help 1`] = `
3838
"
3939
`;
4040
41-
exports[`test no input 1`] = `
42-
"Input required
41+
exports[`test no input 1`] = `"error: Input required"`;
4342
43+
exports[`test no input 2`] = `
44+
"
4445
Ace by DAISY, an Accessibility Checker for EPUB
4546
4647
Usage: ace [options] <input>

tests/__tests__/cli.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const path = require('path');
99
test('test no input', () => {
1010
const { stdout, stderr, status } = ace([]);
1111
expect(status).toBe(1);
12-
expect(stderr).toBe('');
12+
expect(stderr.trim()).toMatchSnapshot();
1313
expect(stdout).toMatchSnapshot();
1414
});
1515

0 commit comments

Comments
 (0)