Skip to content

Commit

Permalink
toStringified msg to prevent TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrhodes authored and James Halliday committed Oct 25, 2013
1 parent 9eb1fd1 commit 37305c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Results.prototype.close = function () {
function encodeResult (res, count) {
var output = '';
output += (res.ok ? 'ok ' : 'not ok ') + count;
output += res.name ? ' ' + res.name.replace(/\s+/g, ' ') : '';
output += res.name ? ' ' + res.name.toString().replace(/\s+/g, ' ') : '';

if (res.skip) output += ' # SKIP';
else if (res.todo) output += ' # TODO';
Expand Down

0 comments on commit 37305c2

Please sign in to comment.