import React from "react";
import { render } from "@test/utils";
import { ButtonBar } from "../ButtonBar";

test("drepecated", () => {
  const consoleError = jest
    .spyOn(console, "error")
    .mockImplementationOnce(() => {});

  const { asFragment } = render(<ButtonBar list={[]} />);

  expect(asFragment()).toMatchSnapshot();
  expect(consoleError).toHaveBeenCalled();

  consoleError.mockRestore();
});
