Merge pull request #99 from dubspeed/master
PhantomReporter: Testing for Node instance fails when Node is a SocketIO...
This commit is contained in:
commit
7d30a38661
@ -120,7 +120,7 @@ phantom.sendMessage = function() {
|
||||
if (!value) return value;
|
||||
|
||||
// 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
|
||||
// String to avoid stringifying the entire Jasmine environment, which
|
||||
|
Loading…
Reference in New Issue
Block a user