diff --git a/test/sanitize.test.ts b/test/sanitize.test.ts index 83eda3945..ac00df51f 100644 --- a/test/sanitize.test.ts +++ b/test/sanitize.test.ts @@ -2,103 +2,109 @@ import { describe, it, expect } from "vitest"; import { stripHtml, validateTextInput } from "../src/lib/sanitize"; describe("stripHtml", () => { - it("removes HTML tags", () => { - expect(stripHtml("Hello")).toBe("Hello"); + it("returns plain text unchanged", () => { + expect(stripHtml("hello world")).toBe("hello world"); }); - it("removes nested HTML tags", () => { - expect(stripHtml("
Test