Skip to content

Commit

Permalink
remove color param from mocha cli runner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityvi committed Sep 26, 2023
1 parent fd9a5c0 commit 173d8c6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/src/cli/testCliRunnerMocha.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const common = require('../../common.js');
const mockery = require('mockery');
const assert = require('assert');
const CI_Info = require('ci-info');
const isCi = CI_Info.isCI;
const path = require('path');

describe('test CLI Runner Mocha', function() {
Expand Down Expand Up @@ -59,10 +57,6 @@ describe('test CLI Runner Mocha', function() {
const testFiles = [];

const defaultOptions = {timeout: 20000, reporterOptions: {}};
if (isCi) {
defaultOptions.color = false;
}

mockery.registerMock('./withmocha.json', {
src_folders: ['tests'],
output_folder: false,
Expand Down Expand Up @@ -136,9 +130,6 @@ describe('test CLI Runner Mocha', function() {
it('testRunWithMochaPerEnvironment', function() {
const testFiles = [];
const defaultOptions = {timeout: 20000, reporterOptions: {}};
if (isCi) {
defaultOptions.color = false;
}

mockery.registerMock('./withmocha.json', {
src_folders: ['tests'],
Expand Down Expand Up @@ -179,10 +170,6 @@ describe('test CLI Runner Mocha', function() {
reporterOptions: {}
};

if (isCi) {
defaultOptions.color = false;
}

mockery.registerMock('./withmocha.json', {
src_folders: ['tests'],
output_folder: false,
Expand Down Expand Up @@ -226,9 +213,6 @@ describe('test CLI Runner Mocha', function() {
reporter: 'mochawesome'
};

if (isCi) {
mochaOptions.color = false;
}

mockery.registerMock('mochawesome', {});

Expand Down

0 comments on commit 173d8c6

Please sign in to comment.