import * as React from "react"; import { render } from "reakit-test-utils"; import { Rover } from "../Rover"; const props: Parameters[0] = { stopId: "rover", stops: [], currentId: null, register: jest.fn(), unregister: jest.fn(), move: jest.fn(), next: jest.fn(), previous: jest.fn(), first: jest.fn(), last: jest.fn(), }; test("render", () => { const { baseElement } = render(rover); expect(baseElement).toMatchInlineSnapshot(`
`); }); test("render without state props", () => { // @ts-ignore const { baseElement } = render(rover); expect(baseElement).toMatchInlineSnapshot(`
`); }); test("render currentId equals to stopId", () => { const { baseElement } = render( rover ); expect(baseElement).toMatchInlineSnapshot(`
`); });