test: update Intl tests for CLDR 49

* Accept prepended apostrophe to 2-digit year output
  (https://unicode-org.atlassian.net/browse/CLDR-19384)
* Avoid British/Irish metazone, as its behavior has changed
  (https://unicode-org.atlassian.net/browse/CLDR-19382)

Signed-off-by: Renegade334 <rene@renegade334.me.uk>
This commit is contained in:
Renegade334 authored and Antoine du Hamel committed 2026-11-20 10:22:56 +01:00
1 parent 503702e89b
commit f9e7cb85da
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ const cases = [
expected: /Pacific (?:Standard|Daylight) Time/,
},
{
timeZone: 'Europe/Dublin',
expected: /Irish Standard Time|Greenwich Mean Time/,
timeZone: 'Europe/Amsterdam',
expected: /Central European (?:Standard|Summer) Time/,
},
];
+2 -1
View File
@@ -89,7 +89,8 @@ if (!common.hasIntl) {
// Check with toLocaleString
{
const localeString = dtf.format(date0);
assert.strictEqual(localeString, 'Jan 70');
// CLDR 49 prepends a U+2019 RIGHT SINGLE QUOTATION MARK to `yy` formats for English locales
assert.match(localeString, /Jan \u2019?70/);
}
// Options to request GMT
const optsGMT = { timeZone: GMT };