Skip to content

Commit

Permalink
test: adapt ICU tests for V8 11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
targos authored and nodejs-github-bot committed Feb 18, 2023
1 parent 874dd6c commit ae56081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-icu-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if (isMockable) {
assert.deepStrictEqual(
locales.map((LANG) => runEnvOutside({ LANG, TZ: 'Europe/Zurich' }, 'new Date(333333333333).toLocaleString()')),
[
'7/25/1980, 1:35:33AM',
'7/25/1980, 1:35:33 AM',
'1980/7/25 01:35:33',
'25/7/1980, 1:35:33 am',
'25/7/1980, 1:35:33',
Expand Down
6 changes: 1 addition & 5 deletions test/parallel/test-intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ if (!common.hasIntl) {
// Test format
{
const localeString = date0.toLocaleString(['en'], optsGMT);
if (Number(process.versions.cldr) >= 42) {
assert.strictEqual(localeString, '1/1/1970, 12:00:00 AM');
} else {
assert.strictEqual(localeString, '1/1/1970, 12:00:00 AM');
}
assert.strictEqual(localeString, '1/1/1970, 12:00:00 AM');
}
// number format
{
Expand Down

0 comments on commit ae56081

Please sign in to comment.