Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,12 @@ describe('MoneyInput.parseMoneyValue', () => {
},
'de-CH'
)
).toEqual({ amount: '1’234.567', currencyCode: 'EUR' });
// The Unicode locale data (CLDR) changed the de-CH thousands separator from a right single quote (U+2019)
// to a plain apostrophe (U+0027) in Node 24.13.1+. Accept both to stay compatible across Node versions.
).toEqual({
amount: expect.stringMatching(/^1[\u2019\u0027]234\.567$/),
currencyCode: 'EUR',
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed feelings between this solution, or normalizing the output in formatAmount by replacing U+0027 → U+2019 after toLocaleString runs (thereby enforcing U+2019 as the canonical de-CH thousands separator
regardless of ICU version)

});
});

Expand Down
Loading