Rocky_Mountain_Vending/.pnpm-store/v10/files/5f/d6849db06b92ab8ad64d8e0d37e92a47fa2d6e54827a9bdeaf84b560dd01db9bd0340d7a407f703200777a10799c16abebbe5be3a86931135b9e8ebdc48998
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

17 lines
725 B
Text

import { CalendarDay } from "./CalendarDay";
it("should set `displayMonth` to undefined when date and `displayMonth` are in the same month", () => {
const date = new Date(2020, 0, 1);
const displayMonth = new Date(2020, 0, 15);
const day = new CalendarDay(date, displayMonth);
expect(day.displayMonth).toEqual(displayMonth);
expect(day.outside).toEqual(false);
});
it("should set `displayMonth` to the given `displayMonth` when date and `displayMonth` are not in the same month", () => {
const date = new Date(2020, 0, 1);
const displayMonth = new Date(2020, 1, 15);
const day = new CalendarDay(date, displayMonth);
expect(day.displayMonth).toEqual(displayMonth);
expect(day.outside).toEqual(true);
});