(iso: string, boundary: "start" | "end", unit: string)
| 76 | |
| 77 | describe("applyDateSnap", () => { |
| 78 | const fmt = (iso: string, boundary: "start" | "end", unit: string) => |
| 79 | applyDateSnap(moment(iso), { boundary, unit: unit as never }).format( |
| 80 | "YYYY-MM-DD HH:mm:ss.SSS", |
| 81 | ); |
| 82 | |
| 83 | it("snaps to the start of the week (locale: Sunday)", () => { |
| 84 | // Thu 2023-06-01 -> Sun 2023-05-28 |
no test coverage detected