InfoIcon.spec.ts 349 B

123456789101112
  1. import InfoIcon from "@/components/InfoIcon.vue";
  2. import { getWrapper } from "@/tests/utils/utils";
  3. test("InfoIcon component", async () => {
  4. const wrapper = await getWrapper(InfoIcon, {
  5. props: { tooltip: "This is a tooltip" }
  6. });
  7. expect(wrapper.attributes("content")).toBe("This is a tooltip");
  8. // await wrapper.trigger("onmouseover");
  9. });