From 187e08b2d046c26114c4a8d6a666d5324222a80c Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 6 Jan 2015 18:46:08 -0500 Subject: [PATCH] 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. --- test/transport/pool.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/transport/pool.js b/test/transport/pool.js index 985723b..ced95f1 100644 --- a/test/transport/pool.js +++ b/test/transport/pool.js @@ -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() {