import { expect, test } from "@odoo/hoot"; import { markup } from "@odoo/owl"; import { setupEditor, testEditor } from "./_helpers/editor"; import { fixInvalidHTML } from "@html_editor/utils/sanitize"; const Markup = markup().constructor; test("sanitize should remove nasty elements", async () => { const { editor } = await setupEditor(""); expect(editor.shared.sanitize.sanitize("")).toBe(''); expect(editor.shared.sanitize.sanitize("")).toBe( "" ); expect( editor.shared.sanitize.sanitize("

abc