Browse Source

Refactoring

pull/7377/head
Thomas Kaul 1 month ago
parent
commit
351e1c7784
  1. 8
      libs/common/src/lib/helper.spec.ts

8
libs/common/src/lib/helper.spec.ts

@ -29,10 +29,6 @@ describe('Helper', () => {
);
});
it('Get decimal number (with hyphenated text)', () => {
expect(extractNumberFromString({ value: 'BRK-B 425.30' })).toEqual(425.3);
});
it('Get decimal number (comma notation)', () => {
expect(
extractNumberFromString({ locale: 'de-DE', value: '999,99' })
@ -63,6 +59,10 @@ describe('Helper', () => {
).toEqual(999.99);
});
it('Get decimal number (with hyphenated text)', () => {
expect(extractNumberFromString({ value: 'BRK-B 425.30' })).toEqual(425.3);
});
it('Not a number', () => {
expect(extractNumberFromString({ value: 'X' })).toEqual(NaN);
});

Loading…
Cancel
Save