Skip to content

Commit

Permalink
Fix ArchiveCreationStartScreen test failure
Browse files Browse the repository at this point in the history
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
  • Loading branch information
meisekimiu committed Oct 29, 2024
1 parent 311db43 commit e9659e2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e9659e2

Please sign in to comment.