/* * 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 Logo from "../Logo"; test("renders a logo", async () => { const wrapper = render(); expect(wrapper.container).toMatchSnapshot(); }); test("renders the logo with the alt text", () => { const wrapper = render(); const image = wrapper.getByTestId("logoImage"); expect(image.getAttribute("alt")).toBe("Organization logo"); });