Skip to content

Commit

Permalink
fix(test): timezone?
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmd5 committed Jun 20, 2023
1 parent 61bf3df commit ce51fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Laboratory/TypeScript/test/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ it("Roundtrips a flat object to JSON-Over-Bebop", () => {
a_float64: 9,
a_string: "hello world",
a_guid: Guid.parseGuid("01234567-0123-0123-0123-0123456789ab"),
a_date: new Date(1996, 1, 7),
a_date: new Date(Date.UTC(1996, 1, 7)),
};

const json = G.BasicTypes.encodeToJson(obj);
Expand All @@ -33,7 +33,7 @@ it("Roundtrips a flat object to JSON-Over-Bebop", () => {
a_float64: 9,
a_string: "hello world",
a_guid: { "#btype": 5, value: "01234567-0123-0123-0123-0123456789ab" },
a_date: { "#btype": 2, value: "629592660000000000" },
a_date: { "#btype": 2, value: "629592480000000000" },
});
expect(() => G.BasicTypes.fromJson(json)).not.toThrow();
});
Expand Down

0 comments on commit ce51fa2

Please sign in to comment.