fixed a bug in the testcase

pull/4692/head
Frank Elsinga 3 weeks ago committed by GitHub
parent 735b91494b
commit ae9c7be347
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -47,8 +47,12 @@ describe("Test i18n.js", () => {
expect(currentLocale()).equal("en");
setLanguages(['pl']);
localStorage.locale = "de";
expect(currentLocale()).equal("de");
localStorage.locale = "ja-ZZ";
expect(currentLocale()).equal("ja");
setLanguages(['pl']);
localStorage.locale = "invalid-lang";
expect(currentLocale()).equal("pl");
});
});

Loading…
Cancel
Save