From f9e7cb85da92d90eb27664ad3a90730320d264d1 Mon Sep 17 00:00:00 2001 From: Renegade334 Date: Fri, 20 Nov 2026 01:08:12 +0000 Subject: [PATCH] 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 --- test/parallel/test-datetime-change-notify.js | 4 ++-- test/parallel/test-intl.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-datetime-change-notify.js b/test/parallel/test-datetime-change-notify.js index 01843511907..95f0ff9db2e 100644 --- a/test/parallel/test-datetime-change-notify.js +++ b/test/parallel/test-datetime-change-notify.js @@ -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/, }, ]; diff --git a/test/parallel/test-intl.js b/test/parallel/test-intl.js index 7d1742f2c7d..b9eed5c5089 100644 --- a/test/parallel/test-intl.js +++ b/test/parallel/test-intl.js @@ -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 };