1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 11:13:44 +00:00

test(browser-approval): [PM-23620] Auth Request Answering Service - Fixed test.

This commit is contained in:
Patrick Pimentel
2025-08-20 18:26:11 -04:00
parent 7c10ec7638
commit f30410f404

View File

@@ -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);
});