Skip to content

Commit

Permalink
fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
stoicchild8910 committed Aug 30, 2020
1 parent 7a66dc4 commit 8fd18d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/cli/run-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,12 @@ exports.runMocha = async (mocha, options) => {
};

const files = collectFiles(fileCollectParams);
if(files.length===1) {
if(options.parallel && !options.parallelForce) {
if (files.length === 1) {
if (parallel && !parallelForce) {
mocha.parallelMode(false);
parallel=false;
parallel = false;
}
}

let run;
if (watch) {
run = parallel ? watchParallelRun : watchRun;
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ exports.builder = yargs =>
},
parallelForce: {
description: 'Force Mocha to quit after tests complete',
group: GROUPS.RULES,
group: GROUPS.RULES
}
})
.positional('spec', {
Expand Down

0 comments on commit 8fd18d3

Please sign in to comment.