Skip to content

Commit b9882a5

Browse files
author
cloudhead
committed
add print() function to reporters
1 parent 151b76c commit b9882a5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

lib/vows/reporters/dot-matrix.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@ this.report = function (data, s) {
5858
puts('\n\n * ' + stylize(event.error, 'red'));
5959
break;
6060
}
61-
return buffer.join('');
61+
};
62+
63+
this.print = function (str) {
64+
sys.print(str);
6265
};

lib/vows/reporters/json.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ var sys = require('sys');
22
//
33
// Console JSON reporter
44
//
5+
this.name = 'json';
56
this.report = function (obj) {
67
sys.puts(JSON.stringify(obj));
78
};
9+
10+
this.print = function (str) {};

lib/vows/reporters/spec.js

+3
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ this.report = function (data, s) {
4949
}
5050
};
5151

52+
this.print = function (str) {
53+
sys.print(str);
54+
};

0 commit comments

Comments
 (0)