mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-10 01:24:20 +02:00
22 lines
469 B
TypeScript
Executable File
22 lines
469 B
TypeScript
Executable File
/**
|
|
* @jest-environment jsdom
|
|
*/
|
|
import { render } from "@testing-library/react"
|
|
import { MemoryRouter } from "react-router-dom"
|
|
|
|
import NotFound from "../index"
|
|
|
|
describe("<NotFound />", () => {
|
|
it("renders", () => {
|
|
const tree = render(
|
|
<MemoryRouter>
|
|
{/*
|
|
@ts-expect-error */}
|
|
<NotFound />
|
|
</MemoryRouter>
|
|
).container.firstChild
|
|
|
|
expect(tree).toMatchSnapshot()
|
|
})
|
|
})
|