feat: improve assistant interactions
This commit is contained in:
1 parent
1642a862d9
commit
8e557fb9fd
25 files changed
+1345
-244
No files matched your search
@@ -0,0 +1,18 @@
|
||||
// @vitest-environment node
|
||||
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
import { getCalendarMonthRange } from "./calendar";
|
||||
|
||||
describe("getCalendarMonthRange", () => {
|
||||
test("treats month 5 as May and includes the calendar overflow days", () => {
|
||||
const { startDate, endDate } = getCalendarMonthRange(2025, 5);
|
||||
|
||||
expect(startDate.getFullYear()).toBe(2025);
|
||||
expect(startDate.getMonth()).toBe(3);
|
||||
expect(startDate.getDate()).toBe(25);
|
||||
expect(endDate.getFullYear()).toBe(2025);
|
||||
expect(endDate.getMonth()).toBe(5);
|
||||
expect(endDate.getDate()).toBe(6);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user