Odoo18-Base/addons/html_editor/static/tests/normalize.test.js

11 lines
316 B
JavaScript
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
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></div>",
});
});