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:
parent
02585c0bd0
commit
ed381f5b2a
@ -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…
Reference in New Issue
Block a user