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:
parent
adb50d1357
commit
94a4b4d7db
@ -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)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user