mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #7310 from MetaMask/signedTypedData-test-adjustment
Stub signTypedMessage
This commit is contained in:
commit
41ec11da0b
@ -784,11 +784,11 @@ describe('Actions', () => {
|
||||
signTypedMsgSpy.restore()
|
||||
})
|
||||
|
||||
it('calls signTypedMsg in background with no error', async () => {
|
||||
it('calls signTypedMsg in background with no error', () => {
|
||||
const store = mockStore()
|
||||
signTypedMsgSpy = sinon.spy(background, 'signTypedMessage')
|
||||
signTypedMsgSpy = sinon.stub(background, 'signTypedMessage')
|
||||
|
||||
await store.dispatch(actions.signTypedMsg(msgParamsV3))
|
||||
store.dispatch(actions.signTypedMsg(msgParamsV3))
|
||||
assert(signTypedMsgSpy.calledOnce)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user