From 9d8d4af9e5a54b3224ff4d850897085a47e4837c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 4 Apr 2026 01:44:04 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A7=AA=20QA:=20Add=20tests=20for=20co?= =?UTF-8?q?mmon=20utilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: daggerstuff <261005129+daggerstuff@users.noreply.github.com> --- src/utils/common.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/utils/common.test.ts diff --git a/src/utils/common.test.ts b/src/utils/common.test.ts new file mode 100644 index 000000000..a9000eda0 --- /dev/null +++ b/src/utils/common.test.ts @@ -0,0 +1,13 @@ +import { describe, expect, it } from "vitest" +import { unescapeHTML } from "./common" + +describe("common utilities", () => { + it("unescapes HTML entities in VNode children", () => { + const node = { + type: "div", + children: "<b>bold</b> & beautiful", + } + const result = unescapeHTML(node) + expect(result.children).toBe("bold & beautiful") + }) +}) From 8507a6912a256664380478042fbb9345501b4e28 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 4 Apr 2026 01:48:06 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A7=AA=20QA:=20Add=20tests=20for=20co?= =?UTF-8?q?mmon=20utilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: daggerstuff <261005129+daggerstuff@users.noreply.github.com> From ef4edd18475bfb76f3a5f3a98b1eea9d4dc06ac6 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 4 Apr 2026 01:53:18 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A7=AA=20QA:=20Add=20tests=20for=20co?= =?UTF-8?q?mmon=20utilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: daggerstuff <261005129+daggerstuff@users.noreply.github.com> From 30738df567bbb9ef629b9577f40f4a0944342470 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 4 Apr 2026 01:56:52 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A7=AA=20QA:=20Add=20tests=20for=20co?= =?UTF-8?q?mmon=20utilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: daggerstuff <261005129+daggerstuff@users.noreply.github.com>