1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 21:50:15 +00:00

Fixes errors in tests.

This commit is contained in:
Miles Blackwood
2026-01-23 17:18:51 -05:00
parent e7d02b2264
commit 1f105ce7de
2 changed files with 22 additions and 6 deletions

View File

@@ -2638,9 +2638,14 @@ describe("NotificationBackground", () => {
type: NotificationType.AddLogin,
tab,
domain: "example.com",
username: "test",
password: "password",
data: {
username: "test",
password: "password",
uri: "https://example.com",
},
wasVaultLocked: false,
launchTimestamp: Date.now(),
expires: new Date(Date.now() + 10000),
});
notificationBackground["notificationQueue"] = [queueMessage];
const cipherView = mock<CipherView>({
@@ -2677,9 +2682,14 @@ describe("NotificationBackground", () => {
type: NotificationType.AddLogin,
tab,
domain: "example.com",
username: "test",
password: "password",
data: {
username: "test",
password: "password",
uri: "https://example.com",
},
wasVaultLocked: false,
launchTimestamp: Date.now(),
expires: new Date(Date.now() + 10000),
});
notificationBackground["notificationQueue"] = [queueMessage];
const cipherView = mock<CipherView>({
@@ -2723,9 +2733,14 @@ describe("NotificationBackground", () => {
type: NotificationType.AddLogin,
tab,
domain: "example.com",
username: "test",
password: "password",
data: {
username: "test",
password: "password",
uri: "https://example.com",
},
wasVaultLocked: false,
launchTimestamp: Date.now(),
expires: new Date(Date.now() + 10000),
});
notificationBackground["notificationQueue"] = [queueMessage];
const cipherView = mock<CipherView>({

View File

@@ -68,6 +68,7 @@ import {
AddChangePasswordNotificationQueueMessage,
AddLoginQueueMessage,
AddLoginMessageData,
AtRiskPasswordQueueMessage,
NotificationQueueMessageItem,
LockedVaultPendingNotificationsData,
NotificationBackgroundExtensionMessage,