Browse Source

add test for config extending properly

patch-2
Gordon Hall 11 years ago
parent
commit
602c94265b
  1. 10
      test/test.PeerManager.js

10
test/test.PeerManager.js

@ -30,6 +30,16 @@ describe('PeerManager', function() {
pm.start();
pm.stop.bind(pm).should.not.throw();
});
it('should extend default config with passed config', function() {
var pm = new PeerManager({
proxy: {
host: 'localhost',
port: 9050
}
});
should.exist(pm.config.network);
should.exist(pm.config.proxy);
});
});

Loading…
Cancel
Save