1 | import React from "react";
|
2 |
|
3 | import { grid } from "@/test/elements";
|
4 | import { render } from "@/test/render";
|
5 |
|
6 | import { Spanish } from "./Spanish";
|
7 |
|
8 | const today = new Date(2021, 10, 25);
|
9 |
|
10 | beforeAll(() => jest.setSystemTime(today));
|
11 | afterAll(() => jest.useRealTimers());
|
12 |
|
13 | beforeEach(() => {
|
14 | render(<Spanish />);
|
15 | });
|
16 |
|
17 | test("should localize the caption in Spanish", () => {
|
18 | expect(grid()).toHaveAccessibleName("noviembre 2021");
|
19 | });
|