1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-13 06:54:07 +00:00
This commit is contained in:
cd-bitwarden
2025-11-19 16:14:16 -05:00
parent 2f3edaad72
commit 94246f7235

View File

@@ -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) => {