UNPKG

556 BTypeScriptView Raw
1import React from "react";
2
3import { gridcell } from "@/test/elements";
4import { render } from "@/test/render";
5
6import { ModifiersCustom } from "./ModifiersCustom";
7
8beforeEach(() => {
9 render(<ModifiersCustom />);
10});
11
12test.each([new Date(2024, 5, 8), new Date(2024, 5, 9), new Date(2021, 5, 10)])(
13 "%s should have the booked style",
14 (day) => {
15 expect(gridcell(day, true)).toHaveClass("booked");
16 }
17);
18
19test.each([new Date(2024, 5, 1)])("%s should have the booked style", (day) => {
20 expect(gridcell(day, true)).not.toHaveClass("booked");
21});