From 94246f72359971865f95efdf1b5af21d5546db91 Mon Sep 17 00:00:00 2001 From: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com> Date: Wed, 19 Nov 2025 16:14:16 -0500 Subject: [PATCH] fix --- .../popup/services/vault-popup-items.service.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/browser/src/vault/popup/services/vault-popup-items.service.spec.ts b/apps/browser/src/vault/popup/services/vault-popup-items.service.spec.ts index 513e159f7aa..645f4b769d7 100644 --- a/apps/browser/src/vault/popup/services/vault-popup-items.service.spec.ts +++ b/apps/browser/src/vault/popup/services/vault-popup-items.service.spec.ts @@ -284,8 +284,8 @@ describe("VaultPopupItemsService", () => { }; // Assume all ciphers are autofill ciphers to test sorting - cipherServiceMock.filterCiphersForUrl.mockImplementation(async () => - Object.values(allCiphers), + cipherServiceMock.filterCiphersForUrl.mockImplementation( + async () => Object.values(allCiphers) as any, ); service.autoFillCiphers$.subscribe((ciphers) => { @@ -335,10 +335,10 @@ describe("VaultPopupItemsService", () => { const cipherList = Object.values(allCiphers); const searchText = "Card 2"; - searchService.searchCiphers.mockImplementation(async () => { + searchService.searchCiphers.mockImplementation(async (userId, query, filter, ciphers) => { return cipherList.filter((cipher) => { return cipher.name === searchText; - }); + }) as any; }); service.favoriteCiphers$.subscribe((ciphers) => { @@ -367,10 +367,10 @@ describe("VaultPopupItemsService", () => { const cipherList = Object.values(allCiphers); const searchText = "Login"; - searchService.searchCiphers.mockImplementation(async () => { + searchService.searchCiphers.mockImplementation(async (userId, query, filter, ciphers) => { return cipherList.filter((cipher) => { return cipher.name.includes(searchText); - }); + }) as any; }); service.remainingCiphers$.subscribe((ciphers) => {