aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/main-personal-settings.js
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-01-10 15:08:03 +0100
committerVincent Petry <vincent@nextcloud.com>2022-01-10 15:08:03 +0100
commit6aba3964d32e8e5589590a60b3d88ce36fd6f4a7 (patch)
treeae7d63c60c4e2da8be1db6e542daac6f7e433ddb /apps/files/src/main-personal-settings.js
parent82ded36358c3e77e786d88709ff0d8a00c68930a (diff)
downloadnextcloud-server-6aba3964d32e8e5589590a60b3d88ce36fd6f4a7.tar.gz
nextcloud-server-6aba3964d32e8e5589590a60b3d88ce36fd6f4a7.zip
Fix JS tests after test lib updates
Prevent XHR during load by checking window.TESTING. Adjust some expected values. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files/src/main-personal-settings.js')
-rw-r--r--apps/files/src/main-personal-settings.js6
1 files changed, 4 insertions, 2 deletions
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')
+}