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();
|
var pool = new Pool();
|
||||||
should.exist(pool.network);
|
should.exist(pool.network);
|
||||||
expect(pool.network).to.satisfy(function(network) {
|
expect(pool.network).to.satisfy(function(network) {
|
||||||
if (network === Networks.testnet || network === Networks.livenet) {
|
return network === Networks.testnet || network === Networks.livenet;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be able to create instance setting the network', function() {
|
it('should be able to create instance setting the network', function() {
|
||||||
var pool = new Peer(Networks.testnet);
|
var pool = new Pool(Networks.testnet);
|
||||||
pool.network.should.equal(Networks.livenet);
|
pool.network.should.equal(Networks.testnet);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should discover peers via dns', function() {
|
it('should discover peers via dns', function() {
|
||||||
@ -103,5 +100,4 @@ describe('Pool', function() {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user