Rocky_Mountain_Vending/.pnpm-store/v10/files/63/36e40e7af74659d9a4a952cb0965ae04febf089680a0216784a5301399b00d27d7ca2a820f483f5143f44d61d5d971dbd13ca7d9b07072b91f2564a7ebbe8d
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

30 lines
1.1 KiB
Text

import { CalendarDay, CalendarMonth, CalendarWeek } from "../classes";
import { getWeeks } from "./getWeeks";
const days1 = [
new CalendarDay(new Date(2023, 1, 12), new Date(2023, 1, 1)),
new CalendarDay(new Date(2023, 1, 13), new Date(2023, 1, 1))
];
const days2 = [
new CalendarDay(new Date(2023, 1, 13), new Date(2023, 1, 1)),
new CalendarDay(new Date(2023, 1, 14), new Date(2023, 1, 1))
];
const days3 = [
new CalendarDay(new Date(2023, 2, 12), new Date(2023, 2, 1)),
new CalendarDay(new Date(2023, 2, 13), new Date(2023, 2, 1))
];
const days4 = [
new CalendarDay(new Date(2023, 2, 13), new Date(2023, 2, 1)),
new CalendarDay(new Date(2023, 2, 14), new Date(2023, 2, 1))
];
const weeks1 = [new CalendarWeek(1, days1), new CalendarWeek(2, days2)];
const weeks2 = [new CalendarWeek(3, days3), new CalendarWeek(4, days4)];
const months = [
new CalendarMonth(days1[0].date, weeks1),
new CalendarMonth(days1[0].date, weeks2)
];
it("should return all the days belonging to the calendar by merging the days in the weeks for each month", () => {
expect(getWeeks(months)).toEqual([...weeks1, ...weeks2]);
});