Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace useColors -> colors #42

Merged
merged 1 commit into from Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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