Odoo18-Base/addons/html_editor/static/tests/normalize.test.js
2025-03-04 12:23:19 +07:00

11 lines
320 B
JavaScript

import { test } from "@odoo/hoot";
import { testEditor } from "./_helpers/editor";
test("should remove empty class attribute", async () => {
// content after is compared after cleaning up DOM
await testEditor({
contentBefore: '<div class=""></div>',
contentAfter: "<div><br></div>",
});
});