CEC-425 Added Delete Verification Prompt (#198)
Co-authored-by: Alexander Andrews <aandrews@fiskerinc.com>
This commit is contained in:
committed by
GitHub
parent
9c7a2b4577
commit
618cc68196
20
src/components/DeleteConfirmation/index.test.jsx
Normal file
20
src/components/DeleteConfirmation/index.test.jsx
Normal file
@@ -0,0 +1,20 @@
|
||||
jest.mock("../Contexts/UserContext");
|
||||
|
||||
import React from "react";
|
||||
import { render, cleanup } from "@testing-library/react";
|
||||
import DeleteConfirmation from "./index";
|
||||
import addSnapshotSerializer from "../../utils/snapshot";
|
||||
|
||||
describe("Delete Confirmation Modal", () => {
|
||||
beforeAll(() => {
|
||||
addSnapshotSerializer(expect);
|
||||
});
|
||||
|
||||
it("Should render", () => {
|
||||
const { container } = render(
|
||||
<DeleteConfirmation open={true} close={()=>{}} message="Test Message" deleteFunction={()=>{}}/>
|
||||
);
|
||||
expect(container).toMatchSnapshot();
|
||||
cleanup();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user