Browse Source

updated connection tests

patch-2
Gordon Hall 11 years ago
parent
commit
e53a2341c3
  1. 4
      package.json
  2. 6
      test/test.Connection.js

4
package.json

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

6
test/test.Connection.js

@ -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);
});
});

Loading…
Cancel
Save