import React from "react";
import renderer from "react-test-renderer";
import Tab from "../Tab";
import Email from "../../../Icon/Icons/components/Email";
import Icon from "../../../Icon/Icon";
describe("Tab renders correctly", () => {
it("with empty props", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when disabled", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when active", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when focus", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when focus and active", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with icon on left", () => {
const tree = renderer
.create(
Tab
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it("with icon on right", () => {
const tree = renderer
.create(
Tab
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it("with value", () => {
const tree = renderer.create(Tab).toJSON();
expect(tree).toMatchSnapshot();
});
it("with id", () => {
const tree = renderer.create(Tab).toJSON();
expect(tree).toMatchSnapshot();
});
it("with className", () => {
const tree = renderer.create(Tab).toJSON();
expect(tree).toMatchSnapshot();
});
});