@lion/ui
Version:
A package of extendable web components
14 lines (11 loc) • 472 B
JavaScript
import { expect } from '@open-wc/testing';
import { getGroupSeparator } from '@lion/ui/localize.js';
describe('getGroupSeparator', () => {
it('returns group separator for locale', () => {
expect(getGroupSeparator('en-GB')).to.equal(',');
expect(getGroupSeparator('nl-NL')).to.equal('.');
expect(getGroupSeparator('fr-FR')).to.equal(' ');
expect(getGroupSeparator('es-ES')).to.equal('.');
expect(getGroupSeparator('bg-BG')).to.equal(' ');
});
});