mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix unit test
This commit is contained in:
parent
ac50db52a9
commit
996523c790
@ -9,7 +9,7 @@ const etherBn = new BN(String(1e18))
|
|||||||
const ether = '0x' + etherBn.toString(16)
|
const ether = '0x' + etherBn.toString(16)
|
||||||
|
|
||||||
describe('PendingBalanceCalculator', function () {
|
describe('PendingBalanceCalculator', function () {
|
||||||
let balanceCalculator
|
let balanceCalculator, pendingTxs
|
||||||
|
|
||||||
describe('#calculateMaxCost(tx)', function () {
|
describe('#calculateMaxCost(tx)', function () {
|
||||||
it('returns a BN for a given tx value', function () {
|
it('returns a BN for a given tx value', function () {
|
||||||
|
@ -13,7 +13,8 @@ const otherNetworkId = 36
|
|||||||
const privKey = new Buffer('8718b9618a37d1fc78c436511fc6df3c8258d3250635bba617f33003270ec03e', 'hex')
|
const privKey = new Buffer('8718b9618a37d1fc78c436511fc6df3c8258d3250635bba617f33003270ec03e', 'hex')
|
||||||
|
|
||||||
describe('PendingTransactionTracker', function () {
|
describe('PendingTransactionTracker', function () {
|
||||||
let pendingTxTracker, txMeta, txMetaNoHash, txMetaNoRawTx, providerResultStub, provider
|
let pendingTxTracker, txMeta, txMetaNoHash, txMetaNoRawTx, providerResultStub,
|
||||||
|
provider, txMeta3, txList, knownErrors
|
||||||
this.timeout(10000)
|
this.timeout(10000)
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
txMeta = {
|
txMeta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user