test-agent
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -0,1 +1,6 @@ | ||
# 0.5.2 | ||
- export-error can now handle strings correctly for | ||
cases like window.onerror when a string is given instead of an | ||
Error instance. | ||
# 0.5.1 | ||
@@ -2,0 +7,0 @@ - Added option to specify websocket server in test-agent test |
@@ -72,13 +72,12 @@ (function(window) { | ||
errorObject.stack = this.formatStack(err); | ||
errorObject.message = err.message; | ||
errorObject.type = err.type; | ||
errorObject.constructorName = err.constructor.name; | ||
errorObject.expected = err.expected; | ||
errorObject.actual = err.actual; | ||
errorObject.stack = this.formatStack(err) || ''; | ||
errorObject.message = err.message || err.toString(); | ||
errorObject.type = err.type || 'Error'; | ||
errorObject.constructorName = err.constructor.name || ''; | ||
errorObject.expected = err.expected || ''; | ||
errorObject.actual = err.actual || ''; | ||
return errorObject; | ||
}; | ||
}(this)); |
{ | ||
"name": "test-agent", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
@@ -17,3 +17,3 @@ (function(window) { | ||
groupTestsByDomain: function(test) { | ||
var result = { | ||
var result = { | ||
domain: './proxy.html', | ||
@@ -20,0 +20,0 @@ test: test, |
@@ -12,3 +12,3 @@ (function(window) { | ||
worker.use(TestAgent.BrowserWorker.MochaDriver, { | ||
mochaUrl: '/mocha/mocha.js', | ||
mochaUrl: '/vendor/mocha/mocha.js', | ||
testHelperUrl: '/test/helper.js', | ||
@@ -15,0 +15,0 @@ //don't need a reporter for proxy |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
298021
60
10507