add test for config extending properly
This commit is contained in:
parent
bf1b4bdcc7
commit
602c94265b
|
@ -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…
Reference in New Issue