import { expect, test } from "bun:test";
import { serializeDevToolbarJson } from "../../src/server/serialize.ts";

test("escapes script-sensitive characters", () => {
  const value = serializeDevToolbarJson({ value: "</script>&" });
  expect(value).not.toContain("</script>");
  expect(value).toContain("\\u003c");
});
