Skip to content

Commit cef86f0

Browse files
committed
reduce console duplicates
1 parent aebeac9 commit cef86f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mocha-coderoad",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "mocha test runner & reporter for atom-coderoad",
55
"main": "src/runner.js",
66
"scripts": {

src/runner.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function runner(files, config, handleResult, handleLog) {
1717
if (!!match) {
1818
var printed = data.toString().substring(0, match.index);
1919
if (!!printed.length) {
20-
var start = printed.substring(0, printed.length / 2);
21-
var end = printed.substring(printed.length / 2, printed.length);
20+
var start = printed.substring(0, printed.length / files.length);
21+
var end = printed.substring(printed.length / files.length, printed.length);
2222
var message = '';
2323
if (start === end) {
2424
message = start;

0 commit comments

Comments
 (0)