Merge pull request #99 from dubspeed/master

PhantomReporter: Testing for Node instance fails when Node is a SocketIO...
This commit is contained in:
Jarrod Overson 2013-12-17 08:21:30 -08:00
commit 7d30a38661

View File

@ -120,7 +120,7 @@ phantom.sendMessage = function() {
if (!value) return value; if (!value) return value;
// If we're a node // If we're a node
if (typeof(Node) !== 'undefined' && value instanceof Node) return '[ Node ]'; if (typeof(Node) !== 'undefined' && !Node.hasOwnProperty("initialized") && value instanceof Node) return '[ Node ]';
// jasmine-given has expectations on Specs. We intercept to return a // jasmine-given has expectations on Specs. We intercept to return a
// String to avoid stringifying the entire Jasmine environment, which // String to avoid stringifying the entire Jasmine environment, which