From ed381f5b2a3a85d351248769b3d150742acb703b Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 29 Mar 2019 13:10:42 +0800 Subject: [PATCH] test - unit - ui - actions - setCompletedOnboarding - fix stub to call callback --- test/unit/ui/app/actions.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/ui/app/actions.spec.js b/test/unit/ui/app/actions.spec.js index a3b979d75..a578ec89c 100644 --- a/test/unit/ui/app/actions.spec.js +++ b/test/unit/ui/app/actions.spec.js @@ -1313,7 +1313,9 @@ describe('Actions', () => { beforeEach(() => { markAllNoticesReadSpy = sinon.stub(background, 'markAllNoticesRead') + markAllNoticesReadSpy.callsFake(cb => cb()) completeOnboardingSpy = sinon.stub(background, 'completeOnboarding') + completeOnboardingSpy.callsFake(cb => cb()) }) after(() => {