diff options
author | Dan Finlay <dan@danfinlay.com> | 2018-01-06 14:08:03 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2018-01-06 14:08:03 +0800 |
commit | aec24ec81e4785ceea93375d562458f62be69266 (patch) | |
tree | d5f98ebc53b4b02f40f1bed110b2bb8e02ad48e4 /test/unit | |
parent | 447682d1fbb07309c696217fba3839455721d003 (diff) | |
download | tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.gz tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.bz2 tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.lz tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.xz tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.tar.zst tangerine-wallet-browser-aec24ec81e4785ceea93375d562458f62be69266.zip |
Fix feature to work
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/metamask-controller-test.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/unit/metamask-controller-test.js b/test/unit/metamask-controller-test.js index 293a45eef..3deb5a1c7 100644 --- a/test/unit/metamask-controller-test.js +++ b/test/unit/metamask-controller-test.js @@ -55,8 +55,10 @@ describe('MetaMaskController', function () { getState: () => { return { recentBlocks: [ - { transactions: [ new BN('50000000000'), new BN('100000000000') ] }, - { transactions: [ new BN('60000000000'), new BN('100000000000') ] }, + { gasPrices: [ '0x3b9aca00', '0x174876e800'] }, + { gasPrices: [ '0x3b9aca00', '0x174876e800'] }, + { gasPrices: [ '0x174876e800', '0x174876e800' ]}, + { gasPrices: [ '0x174876e800', '0x174876e800' ]}, ] } } @@ -64,7 +66,7 @@ describe('MetaMaskController', function () { } const gasPrice = metamaskController.getGasPrice() - assert.equal(gasPrice, 50, 'accurately estimates 50th percentile accepted gas price') + assert.equal(gasPrice, '0x3b9aca00', 'accurately estimates 50th percentile accepted gas price') metamaskController.recentBlocksController = realRecentBlocksController }) |