CEC-1230 Datascope opens iframe dashboard (#174)
* CEC-1230 Datascope opens iframe dashboard * Clean up
This commit is contained in:
@@ -5,6 +5,7 @@ import { BrowserRouter } from "react-router-dom";
|
||||
import { UserProvider, setToken } from "../Contexts/UserContext";
|
||||
import { TEST_AUTH_OBJECT } from "../../utils/testing";
|
||||
import SideMenu from "./SideMenu";
|
||||
import addSnapshotSerializer from "../../utils/snapshot";
|
||||
|
||||
const renderMenu = async () => {
|
||||
const { container } = render(
|
||||
@@ -19,6 +20,10 @@ const renderMenu = async () => {
|
||||
};
|
||||
|
||||
describe("SideMenu", () => {
|
||||
beforeAll(() => {
|
||||
addSnapshotSerializer(expect);
|
||||
});
|
||||
|
||||
it("Unauthenticated", async () => {
|
||||
setToken(null);
|
||||
const container = await renderMenu();
|
||||
|
||||
Reference in New Issue
Block a user