Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🀍

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

Thomas Kaul0cebc65ed46a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a0e800aa1..1e2cdec282 100644
--- a/CHANGELOG.md
+++ b/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
diff --git a/libs/common/src/lib/helper.spec.ts b/libs/common/src/lib/helper.spec.ts
index 25779cf39b..2ce0bf549b 100644
--- a/libs/common/src/lib/helper.spec.ts
+++ b/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', () => {