aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/actions/openInFilesAction.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/actions/openInFilesAction.spec.ts')
-rw-r--r--apps/files_sharing/src/actions/openInFilesAction.spec.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/files_sharing/src/actions/openInFilesAction.spec.ts b/apps/files_sharing/src/actions/openInFilesAction.spec.ts
index 49d4e192d39..2d723770ee9 100644
--- a/apps/files_sharing/src/actions/openInFilesAction.spec.ts
+++ b/apps/files_sharing/src/actions/openInFilesAction.spec.ts
@@ -19,10 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-import type { Navigation } from '../../../files/src/services/Navigation'
-
import { expect } from '@jest/globals'
-import { File, Permission } from '@nextcloud/files'
+import { File, Permission, View } from '@nextcloud/files'
import '../main'
import { action } from './openInFilesAction'
@@ -32,19 +30,19 @@ import { deletedSharesViewId, pendingSharesViewId, sharedWithOthersViewId, share
const view = {
id: 'files',
name: 'Files',
-} as Navigation
+} as View
const validViews = [
sharesViewId,
sharedWithYouViewId,
sharedWithOthersViewId,
sharingByLinksViewId,
-].map(id => ({ id, name: id })) as Navigation[]
+].map(id => ({ id, name: id })) as View[]
const invalidViews = [
deletedSharesViewId,
pendingSharesViewId,
-].map(id => ({ id, name: id })) as Navigation[]
+].map(id => ({ id, name: id })) as View[]
describe('Open in files action conditions tests', () => {
test('Default values', () => {