Skip to content

Commit

Permalink
v4.5.1
Browse files Browse the repository at this point in the history
* Fix test
  • Loading branch information
tonysamperi committed Dec 23, 2023
1 parent 8b8d914 commit fe666d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/datetime/format.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ test("DateTime#toISODate() returns ISO 8601 date in format [±YYYYY]", () => {

test("DateTime#toISODate() correctly pads negative years", () => {
expect(DateTime.fromObject({ year: -1, month: 1, day: 1 }, { zone: "utc" }).toISODate()).toBe(
"-0001-01-01"
"-000001-01-01"
);
expect(DateTime.fromObject({ year: -10, month: 1, day: 1 }, { zone: "utc" }).toISODate()).toBe(
"-0010-01-01"
"-000010-01-01"
);
});

Expand Down

0 comments on commit fe666d7

Please sign in to comment.