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
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-01-10 17:08:03 +0300
committerVincent Petry <vincent@nextcloud.com>2022-01-10 17:08:03 +0300
commit6aba3964d32e8e5589590a60b3d88ce36fd6f4a7 (patch)
treeae7d63c60c4e2da8be1db6e542daac6f7e433ddb /apps/systemtags
parent82ded36358c3e77e786d88709ff0d8a00c68930a (diff)
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/systemtags')
-rw-r--r--apps/systemtags/js/admin.js4
1 files changed, 3 insertions, 1 deletions
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();
+ }
});