1 | import React from "react";
|
2 |
|
3 | import { gridcell } from "@/test/elements";
|
4 | import { render } from "@/test/render";
|
5 |
|
6 | import { OutsideDays } from "./OutsideDays";
|
7 |
|
8 | const today = new Date(2021, 10, 25);
|
9 |
|
10 | beforeAll(() => jest.setSystemTime(today));
|
11 | afterAll(() => jest.useRealTimers());
|
12 |
|
13 | beforeEach(() => {
|
14 | render(<OutsideDays />);
|
15 | });
|
16 |
|
17 | describe("when displaying a month with outside days", () => {
|
18 | test("should display the outside day", () => {
|
19 | expect(gridcell(new Date(2021, 9, 31))).toBeInTheDocument();
|
20 | });
|
21 | });
|