1 | import React from "react";
|
2 |
|
3 | import { grid } from "@/test/elements";
|
4 | import { render } from "@/test/render";
|
5 |
|
6 | import { DefaultMonth } from "./DefaultMonth";
|
7 |
|
8 | const today = new Date(2022, 5, 10);
|
9 |
|
10 | beforeAll(() => jest.setSystemTime(today));
|
11 | afterAll(() => jest.useRealTimers());
|
12 |
|
13 | test("should display September 1979", () => {
|
14 | render(<DefaultMonth />);
|
15 | expect(grid("September 1979")).toBeInTheDocument();
|
16 | });
|