generated from Seekra/repository-template
test(current-language-util): set local storage item 'locale' to the local storage language if it is specified
This commit is contained in:
@@ -47,5 +47,9 @@ test.for(locales)('returns the language $expected for navigator language $naviga
|
|||||||
configurable: true
|
configurable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (localStorageLanguage) {
|
||||||
|
localStorage.setItem('locale', localStorageLanguage);
|
||||||
|
};
|
||||||
|
|
||||||
expect(getCurrentLanguage()).toBe(expected);
|
expect(getCurrentLanguage()).toBe(expected);
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user