Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-26 17:33:36 +0300
committerLouis Chemineau <louis@chmn.me>2022-01-26 19:58:43 +0300
commitbe968a8841587f6e4034ff32880d1ceca4a827bd (patch)
tree359a57ca4304c25fdb04051519ab9c183686f488 /core
parenta145edd00db95135bee6f584e21301267fb5ac16 (diff)
Use @nextcloud/sharing in files and files_sharing
Signed-off-by: Louis Chemineau <louis@chmn.me> Update tests Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core')
-rw-r--r--core/js/tests/specHelper.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js
index d8ac35f827d..498eed757d6 100644
--- a/core/js/tests/specHelper.js
+++ b/core/js/tests/specHelper.js
@@ -86,6 +86,14 @@ window.firstDay = 0;
// setup dummy webroots
/* jshint camelcase: false */
window.oc_debug = true;
+
+// Mock @nextcloud/capabilities
+window._oc_capabilities = {
+ files_sharing: {
+ api_enabled: true
+ }
+}
+
// FIXME: OC.webroot is supposed to be only the path!!!
OC.webroot = location.href + '/';
OC.appswebroots = {