* fix(input-tel): use full locale to translate country names in dropdown * test(input-tel): add test for nameForLocale in input tel dropdown * test(input-tel): update name for locale test suite to fr-BE locale
10 lines
412 B
JavaScript
10 lines
412 B
JavaScript
import { expect } from '@open-wc/testing';
|
|
import { regionCodeToLocale } from '../src/regionCodeToLocale.js';
|
|
|
|
describe('regionCodeToLocale', () => {
|
|
it('returns the most likely locale basename for a region', () => {
|
|
expect(regionCodeToLocale('NL')).to.equal('nl-Latn-NL');
|
|
expect(regionCodeToLocale('FR')).to.equal('fr-Latn-FR');
|
|
expect(regionCodeToLocale('DE')).to.equal('de-Latn-DE');
|
|
});
|
|
});
|