mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
15 lines
341 B
JavaScript
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>")
|
|
})
|
|
})
|