import { test } from "@odoo/hoot";
import { testEditor } from "./_helpers/editor";
import { unformat } from "./_helpers/format";
test("should remove empty class attribute", async () => {
// content after is compared after cleaning up DOM
await testEditor({
contentBefore: '
',
contentAfter: "
",
});
});
test("should remove `style.color` from table and apply it to tds", async () => {
await testEditor({
contentBefore: unformat(`
`),
contentBeforeEdit: unformat(`
`),
});
});
test("should remove `style.color` from table and apply it to td without `style.color`", async () => {
await testEditor({
contentBefore: unformat(`
`),
contentBeforeEdit: unformat(`
`),
});
});