1
0
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:
Thomas Huang 2019-10-23 13:12:17 -07:00 committed by GitHub
commit 41ec11da0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
})