Rocky_Mountain_Vending/.pnpm-store/v10/files/18/11e160da2bc5f5f5f1a0d5eb64d5fa81652f7da2fb577b12151ea752b1432063096ff655584494e97a4144ca07a0c66e84d8991f00b186f7dc0d0e996faaa1
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

25 lines
1 KiB
Text

import { defaultDateLib } from "../classes";
import { endOfBroadcastWeek } from "./endOfBroadcastWeek";
const testCases = [
[new Date(2023, 0, 1), new Date(2023, 0, 29)], // January
[new Date(2023, 1, 1), new Date(2023, 1, 26)], // February
[new Date(2023, 2, 1), new Date(2023, 2, 26)], // March
[new Date(2023, 3, 1), new Date(2023, 3, 30)], // April
[new Date(2023, 4, 1), new Date(2023, 4, 28)], // May
[new Date(2023, 5, 1), new Date(2023, 5, 25)], // June
[new Date(2023, 6, 1), new Date(2023, 6, 30)], // July
[new Date(2023, 7, 1), new Date(2023, 7, 27)], // August
[new Date(2023, 8, 1), new Date(2023, 8, 24)], // September
[new Date(2023, 9, 1), new Date(2023, 9, 29)], // October
[new Date(2023, 10, 1), new Date(2023, 10, 26)], // November
[new Date(2023, 11, 1), new Date(2023, 11, 31)] // December
];
describe("endOfBroadcastWeek", () => {
test.each(testCases)("%s should return %s", (date, expected) => {
const result = endOfBroadcastWeek(date, defaultDateLib);
expect(result).toEqual(expected);
});
});