test: add prompt filter option to recipes page tests

This commit is contained in:
Will Miao
2025-12-23 11:00:08 +08:00
parent bc9dd317f7
commit 502c29c6bd

View File

@@ -110,7 +110,7 @@ describe('RecipeManager', () => {
initializeAppMock.mockResolvedValue(undefined); initializeAppMock.mockResolvedValue(undefined);
initializePageFeaturesMock.mockResolvedValue(undefined); initializePageFeaturesMock.mockResolvedValue(undefined);
refreshVirtualScrollMock.mockReset(); refreshVirtualScrollMock.mockReset();
refreshVirtualScrollMock.mockImplementation(() => {}); refreshVirtualScrollMock.mockImplementation(() => { });
refreshRecipesMock.mockResolvedValue('refreshed'); refreshRecipesMock.mockResolvedValue('refreshed');
getSessionItemMock.mockImplementation((key) => { getSessionItemMock.mockImplementation((key) => {
@@ -121,7 +121,7 @@ describe('RecipeManager', () => {
}; };
return map[key] ?? null; return map[key] ?? null;
}); });
removeSessionItemMock.mockImplementation(() => {}); removeSessionItemMock.mockImplementation(() => { });
renderRecipesPage(); renderRecipesPage();
@@ -158,6 +158,7 @@ describe('RecipeManager', () => {
tags: true, tags: true,
loraName: true, loraName: true,
loraModel: true, loraModel: true,
prompt: true,
recursive: true, recursive: true,
}); });