mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix tests
This commit is contained in:
parent
36ddaf220d
commit
b05a6f89cb
@ -25,7 +25,7 @@ describe('Transaction Controller', function () {
|
|||||||
networkStore: new ObservableStore(currentNetworkId),
|
networkStore: new ObservableStore(currentNetworkId),
|
||||||
txHistoryLimit: 10,
|
txHistoryLimit: 10,
|
||||||
blockTracker: { getCurrentBlock: noop, on: noop, once: noop },
|
blockTracker: { getCurrentBlock: noop, on: noop, once: noop },
|
||||||
accountTracker: { getState: noop },
|
accountTracker: { store: {getState: noop} },
|
||||||
signTransaction: (ethTx) => new Promise((resolve) => {
|
signTransaction: (ethTx) => new Promise((resolve) => {
|
||||||
ethTx.sign(privKey)
|
ethTx.sign(privKey)
|
||||||
resolve()
|
resolve()
|
||||||
@ -385,7 +385,7 @@ describe('Transaction Controller', function () {
|
|||||||
|
|
||||||
describe('#getBalance', function () {
|
describe('#getBalance', function () {
|
||||||
it('gets balance', function () {
|
it('gets balance', function () {
|
||||||
sinon.stub(txController.ethStore, 'getState').callsFake(() => {
|
sinon.stub(txController.accountTracker.store, 'getState').callsFake(() => {
|
||||||
return {
|
return {
|
||||||
accounts: {
|
accounts: {
|
||||||
'0x1678a085c290ebd122dc42cba69373b5953b831d': {
|
'0x1678a085c290ebd122dc42cba69373b5953b831d': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user