Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

build

TJ Holowaychuk43a8e8f524d3
diff --git a/mocha.js b/mocha.js
index 176abc8b..11ef5ce1 100644
--- a/mocha.js
+++ b/mocha.js
@@ -858,7 +858,7 @@ require.register("mocha.js", function(module, exports, require){
* Library version.
*/
-exports.version = '0.14.0';
+exports.version = '0.14.1';
exports.utils = require('./utils');
exports.interfaces = require('./interfaces');
@@ -1490,6 +1490,11 @@ function HTML(runner) {
var el = fragment('<div class="test fail"><h2>%e</h2></div>', test.title);
var str = test.err.stack || test.err;
+ // FF / Opera do not add the message
+ if (!~str.indexOf(test.err.message)) {
+ str = test.err.message + '\n' + str;
+ }
+
// <=IE7 stringifies to [Object Error]. Since it can be overloaded, we
// check for the result of the stringifying.
if ('[object Error]' == str) str = test.err.message;