Files
semaphore/packages/data/tests/utils.test.ts
2024-02-15 15:14:51 +00:00

12 lines
330 B
TypeScript

import { jsDateToGraphqlDate } from "../src/utils"
describe("Utils", () => {
describe("# jsDateToGraphqlDate", () => {
it("Should convert a JS date to the GraphQL date", async () => {
const date = jsDateToGraphqlDate(new Date("2020-01-01"))
expect(date).toBe(1577836800)
})
})
})