Rocky_Mountain_Vending/.pnpm-store/v10/files/9a/809ba0d3d40c36607f11e76bd7274caefacacc2329869c38c2a6d815ab070c73e145cdc6eef4faa00cd43f04241493dfed1e7685f14abe51567aaf055ba304
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

24 lines
1.2 KiB
Text

import { defaultDateLib } from "../classes";
import { startOfBroadcastWeek } from "./startOfBroadcastWeek";
describe("startOfBroadcastWeek", () => {
test.each([
[new Date(2023, 0, 1), new Date(2022, 11, 26)], // January, Sunday
[new Date(2023, 1, 1), new Date(2023, 0, 30)], // February, Wednesday
[new Date(2023, 2, 1), new Date(2023, 1, 27)], // March, Wednesday
[new Date(2023, 3, 1), new Date(2023, 2, 27)], // April, Saturday
[new Date(2023, 4, 1), new Date(2023, 4, 1)], // May, Monday
[new Date(2023, 5, 1), new Date(2023, 4, 29)], // June, Thursday
[new Date(2023, 6, 1), new Date(2023, 5, 26)], // July, Saturday
[new Date(2023, 7, 1), new Date(2023, 6, 31)], // August, Tuesday
[new Date(2023, 8, 1), new Date(2023, 7, 28)], // September, Friday
[new Date(2023, 9, 1), new Date(2023, 8, 25)], // October, Sunday
[new Date(2023, 10, 1), new Date(2023, 9, 30)], // November, Wednesday
[new Date(2023, 11, 1), new Date(2023, 10, 27)] // December, Friday
])("startOfBroadcastWeek(%s) should return %s", (inputDate, expectedDate) => {
expect(startOfBroadcastWeek(inputDate, defaultDateLib)).toEqual(
expectedDate
);
});
});