make Connection test only run in node
...since it doesn't make sense for the browser
This commit is contained in:
parent
da7fede2c0
commit
a1ef9c5220
|
@ -23,13 +23,16 @@ describe('Connection', function() {
|
||||||
var c = new Connection(mSocket, mPeer);
|
var c = new Connection(mSocket, mPeer);
|
||||||
should.exist(c);
|
should.exist(c);
|
||||||
});
|
});
|
||||||
it('should create a proxied socket if instructed', function() {
|
|
||||||
var mPeer;
|
if (typeof process !== 'undefined' && process.versions) { //node-only tests
|
||||||
var c = new Connection(null, mPeer, {
|
it('should create a proxied socket if instructed', function() {
|
||||||
proxy: { host: 'localhost', port: 9050 }
|
var mPeer;
|
||||||
|
var c = new Connection(null, mPeer, {
|
||||||
|
proxy: { host: 'localhost', port: 9050 }
|
||||||
|
});
|
||||||
|
should.exist(c.socket);
|
||||||
});
|
});
|
||||||
should.exist(c.socket);
|
};
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue