Rocky_Mountain_Vending/.pnpm-store/v10/files/71/5c00ae571345758a982e8b3020be622752602a01d80d667e5a03f6ba890fdb8a98ff3d52e060810300824b6053d1e8edda11cc9b232773129411079ef7943e
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, CalendarWeek, CalendarMonth } from "../classes";
import { getDays } from "./getDays";
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(getDays(months)).toEqual([...days1, ...days2, ...days3, ...days4]);
});