1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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

This commit is contained in:
kumavis 2019-03-29 13:10:42 +08:00
parent 02585c0bd0
commit ed381f5b2a

View File

@ -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(() => {