mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix usages of sinon deprecated APIs in MetaMaskController tests (#7827)
This commit is contained in:
parent
74557bd68a
commit
2525e5edaa
@ -10,9 +10,9 @@ import createTxMeta from '../../../lib/createTxMeta'
|
|||||||
import EthQuery from 'eth-query'
|
import EthQuery from 'eth-query'
|
||||||
|
|
||||||
const threeBoxSpies = {
|
const threeBoxSpies = {
|
||||||
init: sinon.spy(),
|
init: sinon.stub(),
|
||||||
getThreeBoxSyncingState: sinon.stub().returns(true),
|
getThreeBoxSyncingState: sinon.stub().returns(true),
|
||||||
turnThreeBoxSyncingOn: sinon.spy(),
|
turnThreeBoxSyncingOn: sinon.stub(),
|
||||||
_registerUpdates: sinon.spy(),
|
_registerUpdates: sinon.spy(),
|
||||||
}
|
}
|
||||||
import proxyquire from 'proxyquire'
|
import proxyquire from 'proxyquire'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user