Skip to content

Commit

Permalink
improve the case with the version without : (tc39#3204)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang authored Sep 17, 2021
1 parent 650e7ad commit 16dae73
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,19 @@ assert.throws(RangeError, () => Temporal.Now.plainDateTimeISO({ timeZone }), "ba

[
"2021-08-19T17:30Z",
"2021-08-19T1730Z",
"2021-08-19T17:30-07:00",
"2021-08-19T1730-07:00",
"2021-08-19T17:30-0700",
"2021-08-19T1730-0700",
"2021-08-19T17:30[America/Vancouver]",
"2021-08-19T1730[America/Vancouver]",
"2021-08-19T17:30Z[America/Vancouver]",
"2021-08-19T1730Z[America/Vancouver]",
"2021-08-19T17:30-07:00[America/Vancouver]",
"2021-08-19T1730-07:00[America/Vancouver]",
"2021-08-19T17:30-0700[America/Vancouver]",
"2021-08-19T1730-0700[America/Vancouver]",
].forEach((timeZone) => {
Temporal.Now.plainDateTimeISO(timeZone);
Temporal.Now.plainDateTimeISO({ timeZone });
Expand Down

0 comments on commit 16dae73

Please sign in to comment.