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:
@@ -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>({
|
||||
|
||||
@@ -68,6 +68,7 @@ import {
|
||||
AddChangePasswordNotificationQueueMessage,
|
||||
AddLoginQueueMessage,
|
||||
AddLoginMessageData,
|
||||
AtRiskPasswordQueueMessage,
|
||||
NotificationQueueMessageItem,
|
||||
LockedVaultPendingNotificationsData,
|
||||
NotificationBackgroundExtensionMessage,
|
||||
|
||||
Reference in New Issue
Block a user