fix a test
This commit is contained in:
parent
89cee5804f
commit
aeec0ddfda
10
test/pool.js
10
test/pool.js
@ -23,16 +23,13 @@ describe('Pool', function() {
|
||||
var pool = new Pool();
|
||||
should.exist(pool.network);
|
||||
expect(pool.network).to.satisfy(function(network) {
|
||||
if (network === Networks.testnet || network === Networks.livenet) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return network === Networks.testnet || network === Networks.livenet;
|
||||
});
|
||||
});
|
||||
|
||||
it('should be able to create instance setting the network', function() {
|
||||
var pool = new Peer(Networks.testnet);
|
||||
pool.network.should.equal(Networks.livenet);
|
||||
var pool = new Pool(Networks.testnet);
|
||||
pool.network.should.equal(Networks.testnet);
|
||||
});
|
||||
|
||||
it('should discover peers via dns', function() {
|
||||
@ -103,5 +100,4 @@ describe('Pool', function() {
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user