-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed position to fixed and appbar width set to inherit its parent
- Loading branch information
Christian Thomas Elfreich
committed
Sep 24, 2020
1 parent
4222c64
commit 99d94c3
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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(<ItemViewAppBar />, container); | ||
}) | ||
expect(container.ItemViewAppBar).toBe(null); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters