@ -9,7 +9,7 @@ const createTxMeta = require('../../../lib/createTxMeta')
const EthQuery = require ( 'eth-query' )
const threeBoxSpies = {
new3Box : sinon . spy ( ) ,
init : sinon . spy ( ) ,
getThreeBoxAddress : sinon . spy ( ) ,
getThreeBoxSyncingState : sinon . stub ( ) . returns ( true ) ,
turnThreeBoxSyncingOn : sinon . spy ( ) ,
@ -23,7 +23,7 @@ class ThreeBoxControllerMock {
subscribe : ( ) => { } ,
getState : ( ) => ( { } ) ,
}
this . new3Box = threeBoxSpies . new3Box
this . init = threeBoxSpies . init
this . getThreeBoxAddress = threeBoxSpies . getThreeBoxAddress
this . getThreeBoxSyncingState = threeBoxSpies . getThreeBoxSyncingState
this . turnThreeBoxSyncingOn = threeBoxSpies . turnThreeBoxSyncingOn
@ -108,7 +108,7 @@ describe('MetaMaskController', function () {
beforeEach ( async function ( ) {
await metamaskController . createNewVaultAndKeychain ( password )
threeBoxSpies . new3Box . reset ( )
threeBoxSpies . init . reset ( )
threeBoxSpies . turnThreeBoxSyncingOn . reset ( )
} )
@ -131,7 +131,7 @@ describe('MetaMaskController', function () {
it ( 'gets the address from threebox and creates a new 3box instance' , async ( ) => {
await metamaskController . submitPassword ( password )
assert ( threeBoxSpies . new3Box . calledOnce )
assert ( threeBoxSpies . init . calledOnce )
assert ( threeBoxSpies . turnThreeBoxSyncingOn . calledOnce )
} )
} )