summaryrefslogtreecommitdiffstats
path: root/__mocks__
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-26 16:04:07 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-07-27 10:05:59 +0200
commit9b69ee639f1edc63ef02a34b3e0fd31012f532b6 (patch)
tree5ac3377f89e1d9ea83eada2d1002ee7e81844af6 /__mocks__
parentd2a7a10925fc21f0573efb49555937e56df6eba1 (diff)
downloadnextcloud-server-9b69ee639f1edc63ef02a34b3e0fd31012f532b6.tar.gz
nextcloud-server-9b69ee639f1edc63ef02a34b3e0fd31012f532b6.zip
fix(files): always ask for confirmation if trashbin app is disabled
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to '__mocks__')
-rw-r--r--__mocks__/@nextcloud/capabilities.ts22
1 files changed, 22 insertions, 0 deletions
diff --git a/__mocks__/@nextcloud/capabilities.ts b/__mocks__/@nextcloud/capabilities.ts
new file mode 100644
index 00000000000..b2b33773403
--- /dev/null
+++ b/__mocks__/@nextcloud/capabilities.ts
@@ -0,0 +1,22 @@
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+import type { Capabilities } from '../../apps/files/src/types'
+
+export const getCapabilities = (): Capabilities => {
+ return {
+ files: {
+ bigfilechunking: true,
+ blacklisted_files: [],
+ forbidden_filename_basenames: [],
+ forbidden_filename_characters: [],
+ forbidden_filename_extensions: [],
+ forbidden_filenames: [],
+ undelete: true,
+ version_deletion: true,
+ version_labeling: true,
+ versioning: true,
+ },
+ }
+}