Stub signTypedMessage

feature/default_network_editable
Thomas 5 years ago
parent adb50d1357
commit 94a4b4d7db
  1. 4
      test/unit/ui/app/actions.spec.js

@ -786,9 +786,9 @@ describe('Actions', () => {
it('calls signTypedMsg in background with no error', async () => { it('calls signTypedMsg in background with no error', async () => {
const store = mockStore() 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) assert(signTypedMsgSpy.calledOnce)
}) })

Loading…
Cancel
Save