aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/views/shares.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/views/shares.spec.ts')
-rw-r--r--apps/files_sharing/src/views/shares.spec.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/files_sharing/src/views/shares.spec.ts b/apps/files_sharing/src/views/shares.spec.ts
index 424d3680411..4107c3154ba 100644
--- a/apps/files_sharing/src/views/shares.spec.ts
+++ b/apps/files_sharing/src/views/shares.spec.ts
@@ -23,19 +23,16 @@
import { expect } from '@jest/globals'
import axios from '@nextcloud/axios'
-import { type Navigation } from '../../../files/src/services/Navigation'
import { type OCSResponse } from '../services/SharingService'
-import { NavigationService } from '../../../files/src/services/Navigation'
import registerSharingViews from './shares'
import '../main'
-import { Folder } from '@nextcloud/files'
+import { Folder, getNavigation } from '@nextcloud/files'
describe('Sharing views definition', () => {
let Navigation
beforeEach(() => {
- Navigation = new NavigationService()
- window.OCP = { Files: { Navigation } }
+ Navigation = getNavigation()
})
afterAll(() => {