Files
beekeeper-studio/apps/studio/tests/unit/lib/editor/LanguageData.spec.js
Matthew Rathbone b829d49fc1 Tests for html comment removal in minify
- Works according to the html spec

Fix: #2421
2024-09-13 11:05:50 -05:00

15 lines
341 B
JavaScript

import { Languages } from "@/lib/editor/languageData"
describe("LanguageData/HTML/minify", () => {
test("Should remove html comments properly", () => {
const input = `<!--<!--- comment --><div>Hi mom</div>`
const ld = Languages.find((l) => l.name === 'html')
expect(ld.minify(input)).toEqual("<div>Hi mom</div>")
})
})