Use correct variables in time zone case insensitive test

Also remove `US/Pacific-New` which has been removed from tz data since
release 2020b.
This commit is contained in:
André Bargull 2023-09-22 09:28:30 +02:00 committed by Philip Chimento
parent dd30d83e9e
commit 16fc2e5e18
1 changed files with 2 additions and 4 deletions

View File

@ -602,7 +602,6 @@ const timeZoneIdentifiers = [
'US/Michigan',
'US/Mountain',
'US/Pacific',
'US/Pacific-New',
'US/Samoa',
'UTC',
'Universal',
@ -620,7 +619,6 @@ for (const id of ids) {
const lower = id.toLowerCase();
const upper = id.toUpperCase();
const tz = new Temporal.TimeZone(id);
assert.sameValue(tz.equals(id), true, `Time zone "${id}" compared to string "${upper}"`);
assert.sameValue(tz.equals(id), true, `Time zone "${id}" compared to string "${lower}"`);
assert.sameValue(tz.equals(upper), true, `Time zone "${id}" compared to string "${upper}"`);
assert.sameValue(tz.equals(lower), true, `Time zone "${id}" compared to string "${lower}"`);
}