Browse Source

Fix tests, address commentary from @braydonf.

patch-2
Eric Martindale 10 years ago
parent
commit
c759401373
  1. 2
      lib/networks.js
  2. 2
      test/networks.js

2
lib/networks.js

@ -75,7 +75,7 @@ function addNetwork(data) {
}); });
_.each(_.values(network), function(value) { _.each(_.values(network), function(value) {
if (value && !_.isObject(value)) { if (!_.isUndefined(value) && !_.isObject(value)) {
networkMaps[value] = network; networkMaps[value] = network;
} }
}); });

2
test/networks.js

@ -57,7 +57,7 @@ describe('Networks', function() {
}; };
networks.add(custom); networks.add(custom);
var network = networks.get(undefined); var network = networks.get(undefined);
should.not.exist( network ); should.not.exist(network);
}); });
var constants = ['name', 'alias', 'pubkeyhash', 'scripthash', 'xpubkey', 'xprivkey']; var constants = ['name', 'alias', 'pubkeyhash', 'scripthash', 'xpubkey', 'xprivkey'];

Loading…
Cancel
Save