1 | import React from "react";
|
2 |
|
3 | import { gridcell } from "@/test/elements";
|
4 | import { render } from "@/test/render";
|
5 |
|
6 | import { ModifiersCustom } from "./ModifiersCustom";
|
7 |
|
8 | beforeEach(() => {
|
9 | render(<ModifiersCustom />);
|
10 | });
|
11 |
|
12 | test.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 |
|
19 | test.each([new Date(2024, 5, 1)])("%s should have the booked style", (day) => {
|
20 | expect(gridcell(day, true)).not.toHaveClass("booked");
|
21 | });
|