updated connection tests
This commit is contained in:
parent
529d26e052
commit
e53a2341c3
|
@ -26,6 +26,10 @@
|
||||||
{
|
{
|
||||||
"name": "Ryan X. Charles",
|
"name": "Ryan X. Charles",
|
||||||
"email": "ryan@bitpay.com"
|
"email": "ryan@bitpay.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Gordon Hall",
|
||||||
|
"email": "gordon@bitpay.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -23,6 +23,12 @@ 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 c = new Connection(null, mPeer, {
|
||||||
|
proxy: { host: 'localhost', port: 9050 }
|
||||||
|
});
|
||||||
|
should.exist(c.socket);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue