Update sign in form test
This commit is contained in:
15
src/components/SignInForm/SignInForm.test.jsx
Normal file
15
src/components/SignInForm/SignInForm.test.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from "react";
|
||||
import { BrowserRouter } from 'react-router-dom';
|
||||
import {render, cleanup, screen, fireEvent, waitFor} from "@testing-library/react"
|
||||
jest.mock("../Contexts/UserContext");
|
||||
import { useUserContext, UserProvider } from "../Contexts/UserContext";
|
||||
import SignInForm from './index';
|
||||
|
||||
describe("Sign In Form", () => {
|
||||
|
||||
it("Should render", () => {
|
||||
const { container } = render(<BrowserRouter><SignInForm /></BrowserRouter>);
|
||||
expect(container).toMatchSnapshot();
|
||||
cleanup();
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user