mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
chore: fix race condition in date serialize test
This commit is contained in:
parent
3769e43c43
commit
d57d705927
@ -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", () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user