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>
28 lines
830 B
Text
28 lines
830 B
Text
import { CalendarDay } from "./CalendarDay";
|
|
import { CalendarMonth } from "./CalendarMonth";
|
|
import { CalendarWeek } from "./CalendarWeek";
|
|
|
|
let month: CalendarMonth;
|
|
let date: Date;
|
|
let weeks: CalendarWeek[];
|
|
const days1 = [
|
|
new CalendarDay(new Date(2023, 1, 12), new Date(2023, 1, 1)),
|
|
new CalendarDay(new Date(2023, 1, 2023), new Date(2023, 1, 1))
|
|
];
|
|
const days2 = [
|
|
new CalendarDay(new Date(2023, 1, 12), new Date(2023, 1, 1)),
|
|
new CalendarDay(new Date(2023, 1, 2023), new Date(2023, 1, 1))
|
|
];
|
|
beforeEach(() => {
|
|
date = new Date();
|
|
weeks = [new CalendarWeek(1, days1), new CalendarWeek(2, days2)];
|
|
month = new CalendarMonth(date, weeks);
|
|
});
|
|
|
|
it("should have a date property", () => {
|
|
expect(month.date).toEqual(date);
|
|
});
|
|
|
|
it("should have a weeks property", () => {
|
|
expect(month.weeks).toEqual(weeks);
|
|
});
|