Comparing version 0.5.17 to 0.5.18
@@ -17,9 +17,13 @@ var QUnit = require('../support/qunit/qunit/qunit.js'), | ||
process.on('uncaughtException', function(err) { | ||
process.send({event: 'uncaughtException'}); | ||
if (QUnit.config.current) { | ||
QUnit.ok(false, 'Test threw unexpected exception: ' + err); | ||
QUnit.ok(false, 'Test threw unexpected exception: ' + err.message); | ||
QUnit.start(); | ||
} else { | ||
throw err; | ||
} | ||
process.send({ | ||
event: 'uncaughtException', | ||
data: { | ||
message: err.message, | ||
stack: err.stack | ||
} | ||
}); | ||
}); | ||
@@ -26,0 +30,0 @@ |
@@ -79,3 +79,3 @@ var fs = require('fs'), | ||
} else if (msg.event === 'uncaughtException') { | ||
callback(new Error('Uncaught exception in child process.')); | ||
callback(_.extend(new Error, msg.data)); | ||
kill(); | ||
@@ -152,3 +152,3 @@ } | ||
if (err) { | ||
return callback(err); | ||
return callback(err, log.stats()); | ||
} | ||
@@ -155,0 +155,0 @@ |
{ | ||
"name": "qunit", | ||
"description": "QUnit testing framework for nodejs", | ||
"version": "0.5.17", | ||
"version": "0.5.18", | ||
"author": "Oleg Slobodskoi <oleg008@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237380
67
5875