updated connection tests

This commit is contained in:
Gordon Hall 2014-04-11 13:56:37 -04:00
parent 529d26e052
commit e53a2341c3
2 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,10 @@
{
"name": "Ryan X. Charles",
"email": "ryan@bitpay.com"
},
{
"name": "Gordon Hall",
"email": "gordon@bitpay.com"
}
],
"keywords": [

View File

@ -23,6 +23,12 @@ describe('Connection', function() {
var c = new Connection(mSocket, mPeer);
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);
});
});