diff --git a/src/tests/lib/components/Tooltip.spec.ts b/src/tests/lib/components/Tooltip.spec.ts index dbc9cff1..8f14be1a 100644 --- a/src/tests/lib/components/Tooltip.spec.ts +++ b/src/tests/lib/components/Tooltip.spec.ts @@ -33,7 +33,7 @@ describe("Tooltip", () => { const tooltipElement = baseElement.querySelector(".tooltip"); expect(tooltipElement).toBeInTheDocument(); expect(tooltipElement?.classList).not.toContain("not-rendered"); - expect(tooltipElement?.innerHTML).toBe("text"); + expect(tooltipElement?.textContent).toBe("text"); }); it("should render tooltip slot content", () => { @@ -42,9 +42,13 @@ describe("Tooltip", () => { const tooltipElement = baseElement.querySelector(".tooltip"); expect(tooltipElement).toBeInTheDocument(); expect(tooltipElement?.classList).not.toContain("not-rendered"); - expect(tooltipElement?.innerHTML).toBe( - '