mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
test: adjust karma global state mock
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
c3e66e22c7
commit
f1b3fac3b1
1 changed files with 7 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ window._oc_appswebroots = {
|
|||
"files": window.webroot + '/apps/files/',
|
||||
"files_sharing": window.webroot + '/apps/files_sharing/'
|
||||
};
|
||||
|
||||
window.OC ??= {};
|
||||
|
||||
OC.config = {
|
||||
session_lifetime: 600 * 1000,
|
||||
session_keepalive: false,
|
||||
|
|
@ -111,6 +114,10 @@ window.Snap.prototype = {
|
|||
|
||||
window.isPhantom = /phantom/i.test(navigator.userAgent);
|
||||
document.documentElement.lang = navigator.language;
|
||||
const el = document.createElement('input');
|
||||
el.id = 'initial-state-core-config';
|
||||
el.value = btoa(JSON.stringify(window.OC.config))
|
||||
document.body.append(el);
|
||||
|
||||
// global setup for all tests
|
||||
(function setupTests() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue