Rocky_Mountain_Vending/.pnpm-store/v10/files/dc/03bca3f76f99c458e4f6bd021d89fdb6d4708376e22bf2f7800e6d22920484e799f7fcc1e79ecd33ee49bc7a4222f7cca00eb48309edecc422a549161c4aef
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

41 lines
1,003 B
Text

import { es } from "date-fns/locale/es";
import type { Modifiers } from "../types";
import { labelDayButton } from "./labelDayButton";
const day = new Date(2022, 10, 21);
const dayModifiers: Modifiers = {
disabled: false,
focusable: false,
focused: false,
hidden: false,
outside: false,
range_end: false,
range_middle: false,
range_start: false,
selected: false,
today: false
};
describe("when the day is selected", () => {
test("return the label", () => {
expect(labelDayButton(day, { ...dayModifiers, selected: true })).toEqual(
"Monday, November 21st, 2022, selected"
);
});
});
describe("when the day is today", () => {
test("return the label", () => {
expect(labelDayButton(day, { ...dayModifiers, today: true })).toEqual(
"Today, Monday, November 21st, 2022"
);
});
});
test("should return the localized label", () => {
expect(labelDayButton(day, dayModifiers, { locale: es })).toEqual(
"lunes, 21 de noviembre de 2022"
);
});