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