From dc895ec902b30992c8005a68989a405c6a8c0378 Mon Sep 17 00:00:00 2001 From: Miles Blackwood Date: Mon, 11 Aug 2025 19:13:35 -0400 Subject: [PATCH] Fixes tests and spelling error. --- .../background/notification.background.spec.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/browser/src/autofill/background/notification.background.spec.ts b/apps/browser/src/autofill/background/notification.background.spec.ts index 7302ae7d705..64d6e3461c0 100644 --- a/apps/browser/src/autofill/background/notification.background.spec.ts +++ b/apps/browser/src/autofill/background/notification.background.spec.ts @@ -514,7 +514,7 @@ describe("NotificationBackground", () => { await notificationBackground.triggerChangedPasswordNotification(data, tab); expect(pushChangePasswordToQueueSpy).toHaveBeenCalledWith( - null, + "", "example.com", data?.newPassword, sender.tab, @@ -1138,7 +1138,7 @@ describe("NotificationBackground", () => { expect(convertAddLoginQueueMessageToCipherViewSpy).toHaveBeenCalledWith( queueMessage, - null, + undefined, ); expect(cipherEncryptSpy).toHaveBeenCalledWith(cipherView, "testId"); expect(createWithServerSpy).toHaveBeenCalled(); @@ -1485,17 +1485,17 @@ describe("NotificationBackground", () => { const message: NotificationBackgroundExtensionMessage = { command: "checkNotificationQueue", }; - const currenTab = createChromeTabMock({ id: 2 }); + const currentTab = createChromeTabMock({ id: 2 }); notificationBackground["notificationQueue"] = [ - mock({ tab: currenTab }), + mock({ tab: currentTab }), ]; - getTabFromCurrentWindowSpy.mockResolvedValueOnce(currenTab); + getTabFromCurrentWindowSpy.mockResolvedValueOnce(currentTab); - sendMockExtensionMessage(message, mock({ tab: null })); + sendMockExtensionMessage(message, mock({ tab: undefined })); await flushPromises(); expect(getTabFromCurrentWindowSpy).toHaveBeenCalledWith(); - expect(doNotificationQueueCheckSpy).toHaveBeenCalledWith(currenTab); + expect(doNotificationQueueCheckSpy).toHaveBeenCalledWith(currentTab); }); });