From 2b8d13f4fea8e1df329aa6b8323f86b35f7682f2 Mon Sep 17 00:00:00 2001 From: Christian Thomas Elfreich Date: Thu, 24 Sep 2020 15:48:36 -0400 Subject: [PATCH] Removed unneccesary test file accidentally included in commit, and added extra toolbar to fix padding underneath fixed appbar --- src/ItemViewAppBar.test.js | 25 ------------------- .../ItemViewAppBar/ItemViewAppBar.js | 2 ++ 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 src/ItemViewAppBar.test.js diff --git a/src/ItemViewAppBar.test.js b/src/ItemViewAppBar.test.js deleted file mode 100644 index 4218681..0000000 --- a/src/ItemViewAppBar.test.js +++ /dev/null @@ -1,25 +0,0 @@ -import React from "react"; -import { render, unmountComponentAtNode} from "react-dom"; -import { act } from "react-dom/test-utils"; - -import ItemViewAppBar from "./ItemViewAppBar"; - -let container = null; -beforeEach(() => { - //Setup a DOM element as a render target - container = document.createElement("div"); - document.body.appendChild(container); -}); - -afterEach(() => { - unmountComponentAtNode(container); - container.remove(); - container = null; -}); - -it("renders only with a title", () =>{ - act(() => { - render(, container); - }) - expect(container.ItemViewAppBar).toBe(null); -}) \ No newline at end of file diff --git a/src/components/ItemViewAppBar/ItemViewAppBar.js b/src/components/ItemViewAppBar/ItemViewAppBar.js index 9ae4957..448e626 100644 --- a/src/components/ItemViewAppBar/ItemViewAppBar.js +++ b/src/components/ItemViewAppBar/ItemViewAppBar.js @@ -19,6 +19,7 @@ export default function ItemViewAppBar(props){ return( <> + + ); }