mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-04-28 03:00:41 -04:00
12 lines
330 B
TypeScript
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)
|
|
})
|
|
})
|
|
})
|