From 6735eb0deaa9bc9e6d3a950970564dc4190684e5 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 14 Jan 2026 03:42:53 +0000 Subject: [PATCH] Fix comment event validation test case Added missing root kind (K) and root author (P) tags to the mock event in `tests/nostr/comment-events.test.mjs`. This fixes a test failure where the event was being rejected by strict validation logic in `isVideoCommentEvent` because the tags derived from the definition address were not present in the event itself. The added tags use whitespace and mixed casing to preserve the test's intent of verifying robust tag parsing. --- tests/nostr/comment-events.test.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/nostr/comment-events.test.mjs b/tests/nostr/comment-events.test.mjs index a4634155..02abf1d6 100644 --- a/tests/nostr/comment-events.test.mjs +++ b/tests/nostr/comment-events.test.mjs @@ -259,6 +259,8 @@ test("listVideoComments matches comments even when tag casing and whitespace dif [" E ", " VIDEO-1 "], ["E", " PARENT-1 "], ["K", String(COMMENT_EVENT_KIND)], + [" K ", " 30078 "], + [" P ", " AUTHOR "], ["P", " THREAD-PARTICIPANT "], ], };