Fixed tests to handle a defaultNetwork change
- Updated tests to work for both 'testnet' and 'livenet' as the default network. - Fixed a bug in Address where the network property was being set as a string. - Fixed a bug in HDKeys to handle serialized keys when the defaultNetwork changed.
This commit is contained in:
parent
4cb0116dda
commit
187e08b2d0
@ -24,7 +24,13 @@ if (typeof(window) === 'undefined'){
|
||||
|
||||
it('should be able to create instance', function() {
|
||||
var pool = new Pool();
|
||||
pool.network.should.equal(Networks.livenet);
|
||||
should.exist(pool.network);
|
||||
expect(pool.network).to.satisfy(function(network){
|
||||
if (network === Networks.testnet || network === Networks.livenet) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
it('should be able to create instance setting the network', function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user