|
|
@ -23,6 +23,8 @@ describe('Connection', function() { |
|
|
|
var c = new Connection(mSocket, mPeer); |
|
|
|
should.exist(c); |
|
|
|
}); |
|
|
|
|
|
|
|
if (typeof process !== 'undefined' && process.versions) { //node-only tests
|
|
|
|
it('should create a proxied socket if instructed', function() { |
|
|
|
var mPeer; |
|
|
|
var c = new Connection(null, mPeer, { |
|
|
@ -30,6 +32,7 @@ describe('Connection', function() { |
|
|
|
}); |
|
|
|
should.exist(c.socket); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|