1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Stub signTypedMessage

This commit is contained in:
Thomas 2019-10-23 12:09:27 -07:00
parent adb50d1357
commit 94a4b4d7db

View File

@ -786,9 +786,9 @@ describe('Actions', () => {
it('calls signTypedMsg in background with no error', async () => {
const store = mockStore()
signTypedMsgSpy = sinon.spy(background, 'signTypedMessage')
signTypedMsgSpy = sinon.stub(background, 'signTypedMessage')
await store.dispatch(actions.signTypedMsg(msgParamsV3))
store.dispatch(await actions.signTypedMsg(msgParamsV3))
assert(signTypedMsgSpy.calledOnce)
})