From f30410f404ed6cec88e87f63dc3c7d80f33bfe6b Mon Sep 17 00:00:00 2001 From: Patrick Pimentel Date: Wed, 20 Aug 2025 18:26:11 -0400 Subject: [PATCH] test(browser-approval): [PM-23620] Auth Request Answering Service - Fixed test. --- .../browser-system-notification.service.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/browser/src/platform/system-notifications/browser-system-notification.service.spec.ts b/apps/browser/src/platform/system-notifications/browser-system-notification.service.spec.ts index 35eb8b0d3f9..a54b288aafe 100644 --- a/apps/browser/src/platform/system-notifications/browser-system-notification.service.spec.ts +++ b/apps/browser/src/platform/system-notifications/browser-system-notification.service.spec.ts @@ -1,6 +1,9 @@ import { DeviceType } from "@bitwarden/common/enums"; import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service"; -import { ButtonLocation } from "@bitwarden/common/platform/system-notifications/system-notifications.service"; +import { + ButtonLocation, + SystemNotificationCreateInfo, +} from "@bitwarden/common/platform/system-notifications/system-notifications.service"; import { BrowserSystemNotificationService } from "./browser-system-notification.service"; @@ -126,7 +129,7 @@ describe("BrowserSystemNotificationService", () => { }); it("supports creating without an id", async () => { - const createInfo = { + const createInfo: SystemNotificationCreateInfo = { title: "No Id", body: "Body", buttons: [], @@ -140,7 +143,7 @@ describe("BrowserSystemNotificationService", () => { }, ); - const id = await service.create(createInfo as any); + const id = await service.create(createInfo); expect(id).toBe("generated-id"); expect(calledWithOptionsOnly).toBe(true); });