Browse Source

Bugfix/thousand separator detection test for de-CH locale (#6571)

* Fix thousand separator detection for de-CH

* Update changelog
pull/6572/head
Thomas Kaul 1 week ago
committed by GitHub
parent
commit
0cebc65ed4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 4
      libs/common/src/lib/helper.spec.ts

4
CHANGELOG.md

@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `svgmap` from version `2.14.0` to `2.19.2`
- Pinned the _Node.js_ version in the _Build code_ _GitHub Action_ to ensure environment consistency for tests
### Fixed
- Fixed an issue with the detection of the thousand separator for the `de-CH` locale
## 2.249.0 - 2026-03-10
### Added

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

@ -25,7 +25,7 @@ describe('Helper', () => {
it('Get decimal number with group (dot notation)', () => {
expect(
extractNumberFromString({ locale: 'de-CH', value: '99’999.99' })
extractNumberFromString({ locale: 'de-CH', value: `99'999.99` })
).toEqual(99999.99);
});
@ -59,7 +59,7 @@ describe('Helper', () => {
it('Get de-CH number format group when it is default', () => {
languageGetter.mockReturnValue('de-CH');
expect(getNumberFormatGroup()).toEqual('’');
expect(getNumberFormatGroup()).toEqual(`'`);
});
it('Get de-DE number format group', () => {

Loading…
Cancel
Save