/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import React from "react";
import "@testing-library/jest-dom/extend-expect";
import { render } from "@testing-library/react";
import LegacyNotification from "./LegacyNotification";
import { DEFAULT_LEGACY_ERROR_NOTIFICATION } from "../../utils/constants";
describe(" spec", () => {
it("renders the component", () => {
const { container } = render(
{}} onSwitchToChannels={() => {}} />
);
expect(container.firstChild).toMatchSnapshot();
});
});