aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js')
-rw-r--r--core/js/tests/specs/l10nSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/tests/specs/l10nSpec.js b/core/js/tests/specs/l10nSpec.js
index af01526c569..c1d596badf6 100644
--- a/core/js/tests/specs/l10nSpec.js
+++ b/core/js/tests/specs/l10nSpec.js
@@ -13,10 +13,15 @@ describe('OC.L10N tests', function() {
beforeEach(function() {
window._oc_appswebroots[TEST_APP] = OC.getRootPath() + '/apps3/jsunittestapp';
+
+ window.OC = window.OC ?? {}
+ window.OC.appswebroots = window.OC.appswebroots || {}
+ window.OC.appswebroots[TEST_APP] = OC.getRootPath() + '/apps3/jsunittestapp'
});
afterEach(function() {
OC.L10N._unregister(TEST_APP);
delete window._oc_appswebroots[TEST_APP];
+ delete window.OC.appswebroots[TEST_APP];
});
describe('text translation', function() {
@@ -121,6 +126,7 @@ describe('OC.L10N tests', function() {
expect(callbackStub.notCalled).toEqual(true);
var req = fakeServer.requests[0];
+ console.warn('fff-', window.OC.appswebroots)
loading
.then(promiseStub)
.then(function() {