2437 - Changed to "EN" default locale #406

Merged
carlosjr merged 1 commits from 2437-tests_locale_fix into dev 2020-10-07 08:25:40 +00:00
2 changed files with 5 additions and 7 deletions

View File

@ -1,10 +1,9 @@
import number from '../number.js';
// Issue #2437
xdescribe('number filter', () => {
describe('number filter', () => {
const superDuperNumber = 18021984;
it('should filter the number with commas by default', () => {
expect(number(superDuperNumber)).toEqual('18,021,984');
expect(number(superDuperNumber, 'en')).toEqual('18,021,984');
});
});

View File

@ -1,12 +1,11 @@
import percentage from '../percentage.js';
// Issue #2437
xdescribe('percentage filter', () => {
describe('percentage filter', () => {
it('should filter the percentage also round it correctly', () => {
expect(percentage(99.9999999999999999 / 100)).toEqual('100.00%');
expect(percentage(99.9999999999999999 / 100, 2, 2, 'en')).toEqual('100.00%');
});
it('should filter the percentage and round it correctly', () => {
expect(percentage(1.25444444444444444 / 100)).toEqual('1.25%');
expect(percentage(1.25444444444444444 / 100, 2, 2, 'en')).toEqual('1.25%');
});
});