diff --git a/test/unit/ui/app/actions.spec.js b/test/unit/ui/app/actions.spec.js index 713edd821..ad6218802 100644 --- a/test/unit/ui/app/actions.spec.js +++ b/test/unit/ui/app/actions.spec.js @@ -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) })