Skip to content

Commit aebeac9

Browse files
committed
optimizations
1 parent 07bfb91 commit aebeac9

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mocha-coderoad",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "mocha test runner & reporter for atom-coderoad",
55
"main": "src/runner.js",
66
"scripts": {
@@ -24,8 +24,6 @@
2424
"mocha": "2.4.5"
2525
},
2626
"devDependencies": {
27-
"babel-core": "^6.5.2",
28-
"babel-polyfill": "^6.5.0",
2927
"chai": "^3.5.0",
3028
"chai-as-promised": "^5.2.0",
3129
"chai-spies": "^0.7.1"

src/create-runner.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,8 @@ function createRunner(config, tests) {
2323
'/usr/local/bin/mocha',
2424
'--bail',
2525
'--harmony',
26+
'--no-colors',
2627
("--reporter=" + path.join(__dirname, 'reporter'))
2728
].concat(tests), options);
2829
}
2930
exports.createRunner = createRunner;
30-
function setRunnerOptions(config) {
31-
var runnerOptions = [];
32-
if (!config.testRunnerOptions) {
33-
return runnerOptions;
34-
}
35-
if (config.testRunnerOptions.babel) {
36-
require('babel-core');
37-
var babelOptions = [
38-
'--use-strict',
39-
'--require babel-polyfill',
40-
'--compilers js:babel-core/register'
41-
];
42-
runnerOptions.concat(babelOptions);
43-
}
44-
return runnerOptions;
45-
}

0 commit comments

Comments
 (0)