import React from "react"; import { render } from "@testing-library/react"; import { PageHeader } from "../"; import { Clickable } from "../../clickable"; describe("PageHeader", () => { it("default", () => { const action = () => 1; const { asFragment } = render( One, Two ]} actions={[
Action 1
]} /> ); expect(asFragment()).toMatchSnapshot(); }); });