import * as React from "react";
import { render } from "reakit-test-utils";
import { Tab, TabProps } from "../Tab";
const props: TabProps = {
baseId: "base",
id: "tab",
items: [],
panels: [],
currentId: null,
selectedId: null,
registerItem: jest.fn(),
unregisterItem: jest.fn(),
setCurrentId: jest.fn(),
select: jest.fn(),
next: jest.fn(),
previous: jest.fn(),
first: jest.fn(),
last: jest.fn(),
up: jest.fn(),
down: jest.fn(),
};
test("render", () => {
const { baseElement } = render(tab);
expect(baseElement).toMatchInlineSnapshot(`
`);
});
test("render without state props", () => {
// @ts-ignore
const { baseElement } = render(tab);
expect(baseElement).toMatchInlineSnapshot(`
`);
});
test("render active", () => {
const { baseElement } = render(
tab
);
expect(baseElement).toMatchInlineSnapshot(`
`);
});
test("render selected", () => {
const { baseElement } = render(
tab
);
expect(baseElement).toMatchInlineSnapshot(`
`);
});
test("render active selected", () => {
const { baseElement } = render(
tab
);
expect(baseElement).toMatchInlineSnapshot(`
`);
});