import * as React from "react"; import { render } from "reakit-test-utils"; import { Toolbar, ToolbarProps } from "../Toolbar"; const props: ToolbarProps = { "aria-label": "toolbar", baseId: "toolbar", currentId: null, items: [], setCurrentId: jest.fn(), move: jest.fn(), first: jest.fn(), last: jest.fn(), }; test("render", () => { const { baseElement } = render(toolbar); expect(baseElement).toMatchInlineSnapshot(`
`); }); test("render orientation", () => { const { baseElement } = render( toolbar ); expect(baseElement).toMatchInlineSnapshot(`
`); }); test("render without state props", () => { const { baseElement } = render( // @ts-ignore toolbar ); expect(baseElement).toMatchInlineSnapshot(`
`); });