Skip to content

Commit

Permalink
refactor: replace useColors with colors (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Luiz Corte Real <login+luiz@elo7.com>
  • Loading branch information
luiz and Luiz Corte Real committed Sep 29, 2020
1 parent 7d6a984 commit 1ce9356
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/shim.js
Expand Up @@ -12,7 +12,7 @@
mochaOptions = mochaOptions || {
ui: 'bdd',
reporter: 'spec',
useColors: true
colors: true
};

mocha.setup(mochaOptions);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -30,7 +30,7 @@ class MochaChrome {
mocha: {
reporter: 'spec',
ui: 'bdd',
useColors: true
colors: true
}
},
options
Expand Down
4 changes: 2 additions & 2 deletions lib/cli.js
Expand Up @@ -68,9 +68,9 @@ if (!/^(file|http(s?)):\/\//.test(file)) {
url = `file://${fs.realpathSync(file)}`;
}

const useColors = !!flags.colors;
const colors = !!flags.colors;
const reporter = flags.reporter || 'spec';
const mocha = Object.assign(JSON.parse(flags.mocha || '{}'), { useColors, reporter });
const mocha = Object.assign(JSON.parse(flags.mocha || '{}'), { colors, reporter });
const chromeFlags = JSON.parse(flags.chromeFlags || '[]');
const {
chromeLauncher = {},
Expand Down
2 changes: 1 addition & 1 deletion test/api.js
Expand Up @@ -14,7 +14,7 @@ function test(options) {
options = deepAssign(
(options = {
url,
mocha: { useColors: false },
mocha: { colors: false },
ignoreConsole: true,
ignoreExceptions: true,
ignoreResourceErrors: true
Expand Down

0 comments on commit 1ce9356

Please sign in to comment.