Skip to content

Commit

Permalink
Multiline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicola Girardi committed Dec 27, 2015
1 parent 0132b1d commit 9c00faf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ Test.prototype.test = function (name, opts, cb) {
};

Test.prototype.comment = function (msg) {
this.emit('result', trim(msg).replace(/^#\s*/, ''));
var that = this;
String(trim(msg)).split('\n').forEach(function (aMsg) {
that.emit('result', trim(aMsg).replace(/^#\s*/, ''));
});
};

Test.prototype.plan = function (n) {
Expand Down

0 comments on commit 9c00faf

Please sign in to comment.