Skip to content

Commit

Permalink
safari you suck
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 19, 2011
1 parent 23b3e1e commit 4d8a1b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ function HTML(runner) {
var el = $('<div class="test pass"><h2>' + test.title + '</h2></div>')
} else {
var el = $('<div class="test fail"><h2>' + test.title + '</h2></div>');
var err = $('<pre class="error">' + test.err.stack + '</pre>');
var str = test.err.stack || test.err;
var err = $('<pre class="error">' + str + '</pre>');
el.append(err);
}

Expand Down
3 changes: 2 additions & 1 deletion mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,8 @@ function HTML(runner) {
var el = $('<div class="test pass"><h2>' + test.title + '</h2></div>')
} else {
var el = $('<div class="test fail"><h2>' + test.title + '</h2></div>');
var err = $('<pre class="error">' + test.err.stack + '</pre>');
var str = test.err.stack || test.err;
var err = $('<pre class="error">' + str + '</pre>');
el.append(err);
}

Expand Down

0 comments on commit 4d8a1b1

Please sign in to comment.