summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-01-10 16:41:11 +0100
committerGitHub <noreply@github.com>2022-01-10 16:41:11 +0100
commit8954e512072f9c7246485994072f1361e8211fd1 (patch)
tree29bbff86d34250a3df1acaf6d48a25b3e15399d0 /apps
parent6572f801023f3b6bed33c32aee4edc5c8e840ece (diff)
parent6aba3964d32e8e5589590a60b3d88ce36fd6f4a7 (diff)
downloadnextcloud-server-8954e512072f9c7246485994072f1361e8211fd1.tar.gz
nextcloud-server-8954e512072f9c7246485994072f1361e8211fd1.zip
Merge pull request #30567 from nextcloud/bugfix/noid/npm-ci-for-karma
Use npm ci when running JS tests
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/files-app-settings.js3
-rw-r--r--apps/files/src/main-personal-settings.js6
-rw-r--r--apps/systemtags/js/admin.js4
3 files changed, 10 insertions, 3 deletions
diff --git a/apps/files/src/files-app-settings.js b/apps/files/src/files-app-settings.js
index daaafbcd6c3..0d8f84cb7a8 100644
--- a/apps/files/src/files-app-settings.js
+++ b/apps/files/src/files-app-settings.js
@@ -37,6 +37,9 @@ Object.assign(window.OCA.Files, { Settings: new Settings() })
Object.assign(window.OCA.Files.Settings, { Setting })
window.addEventListener('DOMContentLoaded', function() {
+ if (window.TESTING) {
+ return
+ }
// Init Vue app
// eslint-disable-next-line
new Vue({
diff --git a/apps/files/src/main-personal-settings.js b/apps/files/src/main-personal-settings.js
index af98d3bea49..b0176d5c30d 100644
--- a/apps/files/src/main-personal-settings.js
+++ b/apps/files/src/main-personal-settings.js
@@ -32,5 +32,7 @@ __webpack_nonce__ = btoa(getRequestToken())
Vue.prototype.t = t
-const View = Vue.extend(PersonalSettings)
-new View().$mount('#files-personal-settings')
+if (!window.TESTING) {
+ const View = Vue.extend(PersonalSettings)
+ new View().$mount('#files-personal-settings')
+}
diff --git a/apps/systemtags/js/admin.js b/apps/systemtags/js/admin.js
index 22d17343228..2409cb488de 100644
--- a/apps/systemtags/js/admin.js
+++ b/apps/systemtags/js/admin.js
@@ -179,6 +179,8 @@
})();
window.addEventListener('DOMContentLoaded', function() {
- OCA.SystemTags.Admin.init();
+ if (!window.TESTING) {
+ OCA.SystemTags.Admin.init();
+ }
});