Skip to content

Commit

Permalink
dont use error symbol.
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaub committed Jan 3, 2019
1 parent afc429e commit 475d81c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions lib/cli/run-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const path = require('path');
const utils = require('../utils');
const minimatch = require('minimatch');
const ansi = require('ansi-colors');
const symbols = require('log-symbols');

const cwd = (exports.cwd = process.cwd());

Expand Down Expand Up @@ -138,7 +137,7 @@ exports.handleFiles = ({
spec = []
} = {}) => {
let files = [];
let errors = [];
const errors = [];
spec.forEach(arg => {
let newFiles;
try {
Expand Down Expand Up @@ -167,13 +166,13 @@ exports.handleFiles = ({
if (!files.length) {
// print messages as an error
errors.forEach(message => {
console.error(ansi.red(`${symbols.error} ${message}`));
console.error(ansi.red(`Error: ${message}`));
});
process.exit(1);
} else {
// print messages as an warning
errors.forEach(message => {
console.warn(`Warning: ${message}`);
console.warn(ansi.yellow(`Warning: ${message}`));
});
}

Expand Down
6 changes: 3 additions & 3 deletions test/integration/glob.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('globbing', function() {
expect(
results.stderr,
'to contain',
' Cannot find any files matching pattern "./*-none.js"'
'Error: Cannot find any files matching pattern "./*-none.js"'
);
},
done
Expand Down Expand Up @@ -77,7 +77,7 @@ describe('globbing', function() {
expect(
results.stderr,
'to contain',
' Cannot find any files matching pattern "./*-none.js"'
'Error: Cannot find any files matching pattern "./*-none.js"'
);
},
done
Expand Down Expand Up @@ -125,7 +125,7 @@ describe('globbing', function() {
expect(
results.stderr,
'to contain',
' Cannot find any files matching pattern "./**/*-none.js"'
'Error: Cannot find any files matching pattern "./**/*-none.js"'
);
},
done
Expand Down

0 comments on commit 475d81c

Please sign in to comment.