mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
503702e89b
commit
f9e7cb85da
2 files changed
+4
-3
No files matched your search
@@ -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/,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in new issue
Block a user