Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Jan 23, 2024
1 parent 2b8d0ce commit 9ef5929
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/format-date-range.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ describe("format date range", () => {
const from = new Date("2023-01-01T00:00:00.000Z");
const to = new Date("2023-01-12T23:59:59.999Z");

expect(formatDateRange(from, to)).toBe("Jan 1 - 12");
expect(
formatDateRange(from, to, {
today,
})
).toBe("Jan 1 - 12");
});
});

0 comments on commit 9ef5929

Please sign in to comment.