diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-31 13:27:29 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-06-26 10:07:21 +0200 |
commit | 409acf113129cc3d1acb550387016f0b30318018 (patch) | |
tree | 187b0a2a3a151aa621420e6679ccb7adf742ffa9 /core/js/tests/specs | |
parent | bc276cdd83aeb40e70ccca4573b4318ca7dceb81 (diff) | |
download | nextcloud-server-409acf113129cc3d1acb550387016f0b30318018.tar.gz nextcloud-server-409acf113129cc3d1acb550387016f0b30318018.zip |
Fix js l10n registration to also work with more than one bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/tests/specs')
-rw-r--r-- | core/js/tests/specs/l10nSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |