UNPKG

518 BTypeScriptView Raw
1import React from "react";
2
3import { gridcell } from "@/test/elements";
4import { render } from "@/test/render";
5
6import { OutsideDays } from "./OutsideDays";
7
8const today = new Date(2021, 10, 25);
9
10beforeAll(() => jest.setSystemTime(today));
11afterAll(() => jest.useRealTimers());
12
13beforeEach(() => {
14 render(<OutsideDays />);
15});
16
17describe("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});