Skip to content

Commit

Permalink
fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Jul 21, 2024
1 parent 122f748 commit 9ee184a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/schema/src/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6056,7 +6056,7 @@ export class DateTimeZonedFromSelf extends declare(
description: "a DateTime.Zoned instance",
pretty: (): pretty_.Pretty<dateTime.Zoned> => (dateTime) => dateTime.toString(),
arbitrary: (): LazyArbitrary<dateTime.Zoned> => (fc) =>
fc.date().chain((date) => timeZoneArbitrary(fc).map((zone) => dateTime.unsafeMakeZoned(date, zone))),
fc.date().chain((date) => timeZoneArbitrary(fc).map((timeZone) => dateTime.unsafeMakeZoned(date, { timeZone }))),
equivalence: () => dateTime.Equivalence
}
) {
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/test/Schema/DateTime/DateTime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("DateTime.Utc", () => {

describe("DateTime.Zoned", () => {
const schema = S.DateTimeZoned
const dt = DateTime.unsafeMakeZoned(0, "Europe/London")
const dt = DateTime.unsafeMakeZoned(0, { timeZone: "Europe/London" })

it("property tests", () => {
Util.roundtrip(schema)
Expand Down

0 comments on commit 9ee184a

Please sign in to comment.