Skip to content
Source
Sign inSign up

clock.test.ts

9 lines321 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { minuteTickToEpochMs } from "./clock";
4​
5describe("minuteTickToEpochMs", () => {
6 it("reads the minute tick as UTC regardless of the device timezone", () => {
7 expect(minuteTickToEpochMs("2026-10-26T02:14")).toBe(Date.UTC(2026, 9, 26, 2, 14));
8 });
9});