Browse Source

fix stub

activeAddress
Ivan Socolsky 10 years ago
parent
commit
ad6102c7ce
  1. 7
      test/integration/server.js

7
test/integration/server.js

@ -196,9 +196,10 @@ helpers.stubHistory = function(txs) {
helpers.stubFeeLevels = function(levels) { helpers.stubFeeLevels = function(levels) {
blockchainExplorer.estimateFee = function(nbBlocks, cb) { blockchainExplorer.estimateFee = function(nbBlocks, cb) {
return cb(null, { var result = _.zipObject(_.map(_.pick(levels, nbBlocks), function(fee, n) {
feePerKB: levels[nbBlocks] / 1e8 return [+n, fee > 0 ? fee / 1e8 : fee];
}); }));
return cb(null, result);
}; };
}; };

Loading…
Cancel
Save