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