15 lines
445 B
JavaScript
15 lines
445 B
JavaScript
jest.mock("../Contexts/UserContext");
|
|
jest.mock("../Contexts/FileUploadContext");
|
|
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import { render, cleanup } from "@testing-library/react"
|
|
import FileUploadForm from './index';
|
|
|
|
describe("File Upload Form", () => {
|
|
|
|
it("Should render", () => {
|
|
const { container } = render(<BrowserRouter><FileUploadForm /></BrowserRouter>);
|
|
expect(container).toMatchSnapshot();
|
|
cleanup();
|
|
})
|
|
}) |