From e9659e2274f8a37d251226123e59fcb24b1ee4c7 Mon Sep 17 00:00:00 2001 From: Natalie Martin Date: Tue, 29 Oct 2024 14:07:19 -0700 Subject: [PATCH] Fix ArchiveCreationStartScreen test failure This random test failure was related to the failures in the ArchiveCreationWithShare component. Fix it here as well since they're related. PER-9901: ArchiveCreationStartScreen test failures --- .../archive-creation-start-screen.component.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/onboarding/components/glam/archive-creation-start-screen/archive-creation-start-screen.component.spec.ts b/src/app/onboarding/components/glam/archive-creation-start-screen/archive-creation-start-screen.component.spec.ts index cd5ebd943..7636eccd7 100644 --- a/src/app/onboarding/components/glam/archive-creation-start-screen/archive-creation-start-screen.component.spec.ts +++ b/src/app/onboarding/components/glam/archive-creation-start-screen/archive-creation-start-screen.component.spec.ts @@ -78,9 +78,8 @@ describe('ArchiveCreationStartScreenComponent', () => { }); it('should not set hasShareToken if shareToken does not exist in localStorage', async () => { - const { instance, fixture } = await shallow.render(); - spyOn(localStorage, 'getItem').and.returnValue(null); + const { instance, fixture } = await shallow.render(); instance.ngOnInit(); fixture.detectChanges();