import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
import { resolveRepoPath } from "~/utils/testing/repoPaths";
import { normalizeSignatureSvg, SignatureServiceError } from "./signatureService.server";
describe("signature payload security", () => {
it("removes scriptable SVG elements and event handlers before persistence", () => {
const sanitized = normalizeSignatureSvg('');
expect(sanitized).toContain("