test - unit - ui - actions - setCompletedOnboarding - fix stub to call callback

feature/default_network_editable
kumavis 6 years ago
parent 02585c0bd0
commit ed381f5b2a
  1. 2
      test/unit/ui/app/actions.spec.js

@ -1313,7 +1313,9 @@ describe('Actions', () => {
beforeEach(() => { beforeEach(() => {
markAllNoticesReadSpy = sinon.stub(background, 'markAllNoticesRead') markAllNoticesReadSpy = sinon.stub(background, 'markAllNoticesRead')
markAllNoticesReadSpy.callsFake(cb => cb())
completeOnboardingSpy = sinon.stub(background, 'completeOnboarding') completeOnboardingSpy = sinon.stub(background, 'completeOnboarding')
completeOnboardingSpy.callsFake(cb => cb())
}) })
after(() => { after(() => {

Loading…
Cancel
Save