fix a test

This commit is contained in:
Manuel Araoz 2015-01-27 13:19:08 -03:00
parent 89cee5804f
commit aeec0ddfda

View File

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