import React from "react";
import { createSerializer } from "@emotion/jest";
import { render } from "@testing-library/react";
import { SystemIcons } from "../../icons/dist/system-icons-enum";
import { ColorCodedBadge } from "..";
expect.addSnapshotSerializer(createSerializer());
describe("ColorCodedBadge", () => {
it("renders without children", () => {
const { asFragment } = render();
expect(asFragment()).toMatchSnapshot();
});
it("renders with a color", () => {
const { asFragment } = render(
Color Coded Badge
);
expect(asFragment()).toMatchSnapshot();
});
it("renders with an icon and color", () => {
const { asFragment } = render(
Color Coded Badge with icon
);
expect(asFragment()).toMatchSnapshot();
});
});