1 | import React from "react";
|
2 |
|
3 | import { grid } from "@/test/elements";
|
4 | import { render } from "@/test/render";
|
5 |
|
6 | import { Jalali } from "./Jalali";
|
7 |
|
8 | const today = new Date(1403, 10, 25);
|
9 |
|
10 | beforeAll(() => jest.setSystemTime(today));
|
11 | afterAll(() => jest.useRealTimers());
|
12 |
|
13 | test("should render نوامبر 1403", () => {
|
14 | render(<Jalali />);
|
15 | expect(grid("نوامبر 1403")).toBeInTheDocument();
|
16 | });
|