/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { render } from "@testing-library/react"; import ContentPanel from "./ContentPanel"; describe(" spec", () => { it("renders the component", () => { const { container } = render( one,
two
]}>
Testing ContentPanel
); expect(container.firstChild).toMatchSnapshot(); }); it("renders actions", () => { const { getByText } = render( one,
two
]}>
Testing ContentPanel
); getByText("one"); getByText("two"); }); });