Skip to content

Commit

Permalink
fuck the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jun 5, 2010
1 parent 1ab43bd commit 151b76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/vows/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ this.puts = function (options) {
return a.replace(/`([^`]+)`/g, function (_, capture) { return stylize(capture, 'italic') })
.replace(/\*([^*]+)\*/g, function (_, capture) { return stylize(capture, 'bold') });
});
return options.stream ? options.stream.write(args.join('\n') + '\n') : buffer.push(args);
return options.stream.write(args.join('\n') + '\n');
};
};

Expand Down
4 changes: 1 addition & 3 deletions lib/vows/reporters/dot-matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ var stylize = console.stylize,
//
// Console reporter
//
var stream, buffer, messages = [];
var stream, messages = [];

this.name = 'dot-matrix';
this.report = function (data, s) {
var event = data[1];

options.stream = typeof(s) === 'object' ? s : process.stdout;
buffer = [];

switch (data[0]) {
case 'subject':
Expand Down Expand Up @@ -49,7 +48,6 @@ this.report = function (data, s) {
break;
case 'finish':
if (messages.length) {
messages.pop(); // drop trailing blank message
puts('\n\n' + messages.join('\n'));
} else {
sys.print('\n');
Expand Down

0 comments on commit 151b76c

Please sign in to comment.