/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { render } from "@testing-library/react"; import Accordion from "../Accordion"; test("renders an accordion with multiple elements", async () => { const wrapper = render(

Hello this is an item in the accordion.

Hello this is a second item in the accordion.

Hello this is a third item in the accordion.

, ); expect(wrapper.container).toMatchSnapshot(); });