import * as React from "react"; import {mount} from "enzyme"; import {Layout, LayoutBody, SideBar, ActionBar, ActionBarRow, TopBar, LayoutResults } from "./Layout" import {fastClick, hasClass, jsxToHTML, printPrettyHtml} from "../../__test__/TestHelpers" describe("Layout components", ()=> { it("should render correctly", ()=> { this.wrapper = mount(
search bar filters row 1 row 2

hits

) expect(this.wrapper.html()).toEqual(jsxToHTML(
search bar
filters
row 1
row 2

hits

)) }) it("layout - no size prop", () => { this.wrapper = mount(
content
) expect(this.wrapper.html()).toEqual(jsxToHTML(
content
)) }) })