diff --git a/src/utils/sanitizer.test.ts b/src/utils/sanitizer.test.ts new file mode 100644 index 0000000..30cfe6e --- /dev/null +++ b/src/utils/sanitizer.test.ts @@ -0,0 +1,31 @@ +import { describe, expect, test } from "vitest"; +import { cozify } from "./sanitizer"; + +describe("cozify()", async () => { + const baseUrl = "https://cozy.pub"; + + test("should remove scripts", async () => { + const html = "