test(core): align AppMenu mock with new icon helper

-e
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
This commit is contained in:
Peter Ringelmann 2026-05-08 12:27:23 +02:00 committed by Peter R.
parent 0917a80ee7
commit 490c6e7c06

View file

@ -39,7 +39,7 @@ vi.mock('@nextcloud/event-bus', () => eventBus)
// Stub @nextcloud/router so we don't need a webroot for the moreApps URL.
vi.mock('@nextcloud/router', () => ({
generateUrl: (path: string) => path,
generateFilePath: (app: string, type: string, file: string) => `/apps/${app}/${type}/${file}`,
imagePath: (app: string, file: string) => `/${app}/img/${file}`,
}))
// Build a minimal nav entry that satisfies INavigationEntry.