From 409acf113129cc3d1acb550387016f0b30318018 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 31 May 2019 13:27:29 +0200 Subject: Fix js l10n registration to also work with more than one bundle Signed-off-by: Christoph Wurst --- core/js/tests/specs/l10nSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/js/tests/specs') diff --git a/core/js/tests/specs/l10nSpec.js b/core/js/tests/specs/l10nSpec.js index 01ec69aaf43..67a5ab710d5 100644 --- a/core/js/tests/specs/l10nSpec.js +++ b/core/js/tests/specs/l10nSpec.js @@ -15,7 +15,7 @@ describe('OC.L10N tests', function() { OC.appswebroots[TEST_APP] = OC.getRootPath() + '/apps3/jsunittestapp'; }); afterEach(function() { - delete OC.L10N._bundles[TEST_APP]; + OC.L10N._unregister(TEST_APP); delete OC.appswebroots[TEST_APP]; }); @@ -29,7 +29,7 @@ describe('OC.L10N tests', function() { }); }); it('returns untranslated text when no bundle exists', function() { - delete OC.L10N._bundles[TEST_APP]; + OC.L10N._unregister(TEST_APP); expect(t(TEST_APP, 'unknown text')).toEqual('unknown text'); }); it('returns untranslated text when no key exists', function() { -- cgit v1.2.3