You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`"${locale}" is not a valid LOCALE_ID value. See https://github.com/unicode-cldr/cldr-core/blob/master/availableLocales.json for a list of valid locales`);
Copy file name to clipboardExpand all lines: packages/common/test/i18n/locale_data_api_spec.ts
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,11 @@ export function main() {
22
22
});
23
23
24
24
describe('findLocaleData',()=>{
25
-
it('should throw if the locale provided is not a valid LOCALE_ID',()=>{
26
-
expect(()=>findLocaleData('invalid'))
27
-
.toThrow(newError(
28
-
`"invalid" is not a valid LOCALE_ID value. See https://github.com/unicode-cldr/cldr-core/blob/master/availableLocales.json for a list of valid locales`));
29
-
});
30
-
31
-
it('should throw if the LOCALE_DATA for the chosen locale if not available',()=>{
0 commit comments