13 lines
489 B
JavaScript
13 lines
489 B
JavaScript
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(' ');
|
|
});
|
|
});
|