/*
* 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 Tooltip from "../Tooltip";
test("renders a tooltip at the top (default)", async () => {
const wrapper = render();
expect(wrapper.container).toMatchSnapshot();
});
test("renders a tooltip at the right", async () => {
const wrapper = render();
expect(wrapper.container).toMatchSnapshot();
});
test("renders a tooltip at the bottom", async () => {
const wrapper = render();
expect(wrapper.container).toMatchSnapshot();
});
test("renders a tooltip at the left", async () => {
const wrapper = render();
expect(wrapper.container).toMatchSnapshot();
});