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>
21 lines
538 B
Text
21 lines
538 B
Text
import { CalendarDay } from "./CalendarDay";
|
|
import { CalendarWeek } from "./CalendarWeek";
|
|
|
|
let week: CalendarWeek;
|
|
const days = [
|
|
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(() => {
|
|
week = new CalendarWeek(1, days);
|
|
});
|
|
|
|
it("should have a weekNumber", () => {
|
|
expect(week.weekNumber).toEqual(1);
|
|
});
|
|
|
|
it("should have an array of days", () => {
|
|
expect(week.days).toBe(days);
|
|
expect(week.days[0]).toBeInstanceOf(CalendarDay);
|
|
});
|