Browse Source

make Connection test only run in node

...since it doesn't make sense for the browser
patch-2
Ryan X. Charles 11 years ago
parent
commit
a1ef9c5220
  1. 3
      test/test.Connection.js

3
test/test.Connection.js

@ -23,6 +23,8 @@ describe('Connection', function() {
var c = new Connection(mSocket, mPeer);
should.exist(c);
});
if (typeof process !== 'undefined' && process.versions) { //node-only tests
it('should create a proxied socket if instructed', function() {
var mPeer;
var c = new Connection(null, mPeer, {
@ -30,6 +32,7 @@ describe('Connection', function() {
});
should.exist(c.socket);
});
};
});

Loading…
Cancel
Save