diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-26 15:33:36 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-01-26 17:58:43 +0100 |
commit | be968a8841587f6e4034ff32880d1ceca4a827bd (patch) | |
tree | 359a57ca4304c25fdb04051519ab9c183686f488 /core/js/tests | |
parent | a145edd00db95135bee6f584e21301267fb5ac16 (diff) | |
download | nextcloud-server-be968a8841587f6e4034ff32880d1ceca4a827bd.tar.gz nextcloud-server-be968a8841587f6e4034ff32880d1ceca4a827bd.zip |
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/js/tests')
-rw-r--r-- | core/js/tests/specHelper.js | 8 |
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 = { |