Skip to content

Commit

Permalink
Comment formatting review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Millin committed Sep 8, 2016
1 parent c878a3a commit 50d740e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ Test.prototype.test = function (name, opts, cb) {

Test.prototype.comment = function () {
var that = this;
var keys = Object.keys(arguments)
var msg = keys.length > 1 ? format.apply(null, arguments) : arguments[keys[0]];

var msg = arguments.length > 1 ? format.apply(null, arguments) : arguments[0];

trim(msg).split('\n').forEach(function (aMsg) {
that.emit('result', trim(aMsg).replace(/^#\s*/, ''));
Expand Down
2 changes: 1 addition & 1 deletion test/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ tap.test('formatted multiline string', function (assert) {
t.comment("tip\n%s\nt%s", "tap", "ape");
t.end();
});
});
});

0 comments on commit 50d740e

Please sign in to comment.