test-agent
Advanced tools
Comparing version 0.22.11 to 0.22.12
@@ -32,3 +32,3 @@ (function(window) { | ||
var args = Array.prototype.slice.call(arguments, 1), | ||
messages = (type === 'trace') ? [(new Error()).stack] : args, | ||
messages = args, | ||
stack = new Error().stack; | ||
@@ -46,2 +46,7 @@ | ||
if (type === 'trace') { | ||
messages = [stack]; | ||
type = 'log'; | ||
} | ||
var logDetails = { messages: messages, stack: stack }; | ||
@@ -58,2 +63,3 @@ | ||
MochaReporter.console.debug = consoleShim.bind(null, 'log'); | ||
MochaReporter.console.log = consoleShim.bind(null, 'log'); | ||
@@ -65,3 +71,2 @@ MochaReporter.console.info = consoleShim.bind(null, 'info'); | ||
MochaReporter.console.trace = consoleShim.bind(null, 'trace'); | ||
MochaReporter.console.debug = consoleShim.bind(null, 'log'); | ||
@@ -68,0 +73,0 @@ runner.on('suite', function onSuite(suite) { |
@@ -113,6 +113,2 @@ (function() { | ||
console.dir.apply(console, data.messages); | ||
}, | ||
'trace': function onTrace(data) { | ||
console.log.apply(console, data.messages); | ||
} | ||
@@ -119,0 +115,0 @@ |
{ | ||
"name": "test-agent", | ||
"version": "0.22.11", | ||
"version": "0.22.12", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
Sorry, the diff of this file is too big to display
7864
252536