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
@@ -7,6 +7,7 @@ jest.mock("@material-ui/core/utils/unstable_useId", () =>
|
||||
|
||||
import { render, waitFor } from "@testing-library/react";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import routeData from "react-router";
|
||||
|
||||
import { FleetProvider } from "../../Contexts/FleetContext";
|
||||
import { StatusProvider } from "../../Contexts/StatusContext";
|
||||
@@ -38,6 +39,11 @@ describe("FleetStatus", () => {
|
||||
addSnapshotSerializer(expect);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
// Does not work if placed in beforeAll
|
||||
jest.spyOn(routeData, 'useParams').mockReturnValue({ name: "Fleet Name" })
|
||||
})
|
||||
|
||||
it("Render", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
const container = await renderCarStatus();
|
||||
|
||||
Reference in New Issue
Block a user