add test for config extending properly

This commit is contained in:
Gordon Hall 2014-04-28 12:33:34 -04:00
parent bf1b4bdcc7
commit 602c94265b
1 changed files with 10 additions and 0 deletions

View File

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