From e53a2341c3f00d8813d78f0c82afa737e8cdf1f1 Mon Sep 17 00:00:00 2001 From: Gordon Hall Date: Fri, 11 Apr 2014 13:56:37 -0400 Subject: [PATCH] updated connection tests --- package.json | 4 ++++ test/test.Connection.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/package.json b/package.json index d021292ac..3176ced2a 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,10 @@ { "name": "Ryan X. Charles", "email": "ryan@bitpay.com" + }, + { + "name": "Gordon Hall", + "email": "gordon@bitpay.com" } ], "keywords": [ diff --git a/test/test.Connection.js b/test/test.Connection.js index 868297384..f070993d8 100644 --- a/test/test.Connection.js +++ b/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); + }); });