11 lines
401 B
JavaScript
11 lines
401 B
JavaScript
import { expect } from '@open-wc/testing';
|
|
|
|
import { getDecimalSeparator } from '../../src/number/getDecimalSeparator.js';
|
|
|
|
describe('getDecimalSeparator', () => {
|
|
it('returns decimal separator for locale', async () => {
|
|
expect(getDecimalSeparator('en-GB')).to.equal('.');
|
|
expect(getDecimalSeparator('nl-NL')).to.equal(',');
|
|
expect(getDecimalSeparator('fr-FR')).to.equal(',');
|
|
});
|
|
});
|