Rocky_Mountain_Vending/.pnpm-store/v10/files/0d/12e88de91db52d33e5b25d789151f876e7c00ba6ee1b9f24aa1c7a249aeb7af32066334d90cf42c7706e5b40082a55981017a096cfbc0217f13a6cbbab04e3
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

23 lines
832 B
Text

import { defaultDateLib } from "../classes/index.js";
import { getBroadcastWeeksInMonth } from "./getBroadcastWeeksInMonth";
describe("getBroadcastWeeksInMonth", () => {
test.each`
month | expectedWeeks
${new Date(2023, 0, 1)} | ${5}
${new Date(2023, 1, 1)} | ${4}
${new Date(2023, 2, 1)} | ${4}
${new Date(2023, 3, 1)} | ${5}
${new Date(2023, 4, 1)} | ${4}
${new Date(2023, 5, 1)} | ${4}
${new Date(2023, 6, 1)} | ${5}
${new Date(2023, 7, 1)} | ${4}
${new Date(2023, 8, 1)} | ${4}
${new Date(2023, 9, 1)} | ${5}
${new Date(2023, 10, 1)} | ${4}
${new Date(2023, 11, 1)} | ${5}
`("returns $expectedWeeks weeks for $month", ({ month, expectedWeeks }) => {
expect(getBroadcastWeeksInMonth(month, defaultDateLib)).toBe(expectedWeeks);
});
});