From 087440989efdfdbe0857780b2739a77c6dea9cf6 Mon Sep 17 00:00:00 2001 From: Tom <144813356+ttalty@users.noreply.github.com> Date: Fri, 19 Jul 2024 11:27:23 -0400 Subject: [PATCH] Fixing the test for unsecured reports (#10185) --- .../pages/unsecured-websites-report.component.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts b/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts index e616d1f21e..a1f631d2b6 100644 --- a/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts +++ b/apps/web/src/app/tools/reports/pages/unsecured-websites-report.component.spec.ts @@ -8,6 +8,7 @@ import { ModalService } from "@bitwarden/angular/services/modal.service"; import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction"; import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; +import { CollectionService } from "@bitwarden/common/vault/abstractions/collection.service"; import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { PasswordRepromptService } from "@bitwarden/vault"; @@ -19,11 +20,13 @@ describe("UnsecuredWebsitesReportComponent", () => { let fixture: ComponentFixture; let organizationService: MockProxy; let syncServiceMock: MockProxy; + let collectionService: MockProxy; beforeEach(() => { organizationService = mock(); organizationService.organizations$ = of([]); syncServiceMock = mock(); + collectionService = mock(); // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling. // eslint-disable-next-line @typescript-eslint/no-floating-promises TestBed.configureTestingModule({ @@ -53,6 +56,10 @@ describe("UnsecuredWebsitesReportComponent", () => { provide: I18nService, useValue: mock(), }, + { + provide: CollectionService, + useValue: collectionService, + }, ], schemas: [], }).compileComponents();