chore: fix race condition in date serialize test

This commit is contained in:
dpiercey 2025-12-16 10:25:25 -07:00 committed by Dylan Piercey
parent 3769e43c43
commit d57d705927

View File

@ -124,8 +124,10 @@ describe("serializer", () => {
describe("date", () => {
it("epoch", () =>
assertStringify(new Date(0), `new Date("1970-01-01T00:00:00.000Z")`));
it("now", () =>
assertStringify(new Date(), `new Date("${new Date().toISOString()}")`));
it("now", () => {
const date = new Date();
assertStringify(date, `new Date("${date.toISOString()}")`);
});
});
describe("map", () => {