Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 2488-jasmine_true_random
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
5493c7437e
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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%');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue