Odoo18-Base/addons/html_editor/static/tests/comment.test.js
2025-01-06 10:57:38 +07:00

10 lines
299 B
JavaScript

import { test } from "@odoo/hoot";
import { testEditor } from "./_helpers/editor";
test("should remove comment node inside editable content during sanitize", async () => {
await testEditor({
contentBefore: "<p>ab<!-- comment -->cd</p>",
contentAfter: "<p>abcd</p>",
});
});