Skip to content

Commit

Permalink
test: make date test timezone insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Jun 20, 2024
1 parent 5affd1b commit cde1275
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/value-date.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ test("can be configured to return an empty value", (t) => {
test("can be configured to return a date after and before given dates", (t) => {
const actual = value.date({
seed: t.title,
after: new Date(1984, 0, 1),
before: new Date(1984, 0, 3),
after: new Date("1984-01-01T00:00:00.000Z"),
before: new Date("1984-01-01T00:00:00.000Z"),
});

// Interval is [after, before]
t.is(actual, "1984-01-01");
});

0 comments on commit cde1275

Please sign in to comment.