fix(current-language-util): use the full locale instead of the language for the testing environment
This commit is contained in:
1 parent
093d5840fc
commit
b58ee95ad2
1 file changed
+1
-1
@@ -41,7 +41,7 @@ test.for([
|
||||
['zh-Hant-TW-u-co-phonebk', 'zh']
|
||||
])('returns the language \'%s\' for locale only set via navigator.language', ([locale, language]) => {
|
||||
Object.defineProperty(navigator, 'language', {
|
||||
value: language,
|
||||
value: locale,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user