import { test, assert, expect, it, describe } from "vitest" import { HtmlHelper } from "./HtmlHelper" const target = HtmlHelper describe("HtmlHelper", () => { describe("cleanupHtmlTags", () => { it("cleanupHtmlTags multiple occurences", () => { expect(target.cleanupHtmlTags("xcyxxcyx", ["a"])).toBe("") }) it("cleanupHtmlTags multiple tags with newlines", () => { expect( target .cleanupHtmlTags( ` xcyx xcyx xcyx xcyx xcyx myText`, ["a", "b"] ) .trim() ).toBe("myText") }) }) })