Skip to content

Commit

Permalink
Use correct variables in time zone case insensitive test
Browse files Browse the repository at this point in the history
Also remove `US/Pacific-New` which has been removed from tz data since
release 2020b.
  • Loading branch information
anba authored and ptomato committed Sep 22, 2023
1 parent dd30d83 commit 16fc2e5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,6 @@ const timeZoneIdentifiers = [
'US/Michigan',
'US/Mountain',
'US/Pacific',
'US/Pacific-New',
'US/Samoa',
'UTC',
'Universal',
Expand All @@ -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}"`);
}

0 comments on commit 16fc2e5

Please sign in to comment.