Update sign in form test

This commit is contained in:
jwu-fisker
2021-01-06 19:55:57 -08:00
parent 518c98444b
commit 388ea68400
2 changed files with 0 additions and 145 deletions

View 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();
})
})