diff options
Diffstat (limited to 'apps/files/src/actions/sidebarAction.spec.ts')
-rw-r--r-- | apps/files/src/actions/sidebarAction.spec.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/src/actions/sidebarAction.spec.ts b/apps/files/src/actions/sidebarAction.spec.ts index 9e1415b0b2c..2c23755a84d 100644 --- a/apps/files/src/actions/sidebarAction.spec.ts +++ b/apps/files/src/actions/sidebarAction.spec.ts @@ -110,6 +110,7 @@ describe('Open sidebar action exec tests', () => { const openMock = jest.fn() window.OCA = { Files: { Sidebar: { open: openMock } } } const goToRouteMock = jest.fn() + // @ts-expect-error We only mock what needed, we do not need Files.Router.goTo or Files.Navigation window.OCP = { Files: { Router: { goToRoute: goToRouteMock } } } const file = new File({ |