lion/packages/ui/components/input-tel-dropdown/test/regionCodeToLocale.test.js
Stijn Van Asschodt dc5d224e98
fix(input-tel): use full locale to translate country names in dropdown (#2526)
* 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
2025-07-02 09:56:50 +02:00

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');
});
});