import HTMLHelper from "./HTMLHelper"; describe("HTMLHelper", () => { const document = `

Big Text

`; describe("inlineCSS", () => { it("should inline CSS from style tags", async () => { const result = await HTMLHelper.inlineCSS(document); expect(result).toBe(`

Big Text

`); }); it("should initialize once", async () => { const first = await HTMLHelper.inlineCSS(document); const second = await HTMLHelper.inlineCSS(document); expect(first).toBe(second); }); }); });