1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-28 15:23:53 +00:00

Fixes errors in tests.

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

View File

@@ -1145,9 +1145,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>({
@@ -1184,9 +1189,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>({
@@ -1237,9 +1247,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

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