UNPKG

@lion/localize

Version:

The localization system helps to manage localization data split into locales and automate its loading

14 lines (11 loc) 489 B
import { expect } from '@open-wc/testing'; import { getGroupSeparator } from '../../src/number/getGroupSeparator.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(' '); }); });