Skip to content

Commit

Permalink
fix(cli): fix broken dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeltour committed Oct 2, 2017
1 parent f295c6f commit 1b6893b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

'use strict';

const ace = require('../core/ace.js');

const fs = require('fs');
const meow = require('meow');
const path = require('path');
const winston = require('winston');

const ace = require('../core/ace.js');
const logger = require('../core/logger.js');

const cli = meow(`
Expand Down
7 changes: 4 additions & 3 deletions tests/__tests__/__snapshots__/cli.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`test existing output 1`] = `
"Output directory is not empty.
"[33mwarn[39m: Output directory is not empty.
Running Ace would override the following files or directories:
Expand Down Expand Up @@ -38,9 +38,10 @@ exports[`test help 1`] = `
"
`;
exports[`test no input 1`] = `
"Input required
exports[`test no input 1`] = `"error: Input required"`;
exports[`test no input 2`] = `
"
Ace by DAISY, an Accessibility Checker for EPUB
Usage: ace [options] <input>
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const path = require('path');
test('test no input', () => {
const { stdout, stderr, status } = ace([]);
expect(status).toBe(1);
expect(stderr).toBe('');
expect(stderr.trim()).toMatchSnapshot();
expect(stdout).toMatchSnapshot();
});

Expand Down

0 comments on commit 1b6893b

Please sign in to comment.