From 2c5fc53f3fb67e7c372ac7b543d14d688bf31785 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 31 Jan 2026 04:05:20 +0000 Subject: [PATCH] refactor(ai): extract handleAddProfile from js/app.js (agent) Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- tests/hashtag-preferences.test.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/hashtag-preferences.test.mjs b/tests/hashtag-preferences.test.mjs index afd68da7..f72827cd 100644 --- a/tests/hashtag-preferences.test.mjs +++ b/tests/hashtag-preferences.test.mjs @@ -248,8 +248,10 @@ test( tags: [["encrypted", "nip04"]], }; + let fetchCalls = 0; nostrClient.fetchListIncrementally = async () => { - return [event]; + fetchCalls += 1; + return fetchCalls === 1 ? [event] : []; }; nostrClient.relays = relayUrls; nostrClient.writeRelays = relayUrls;