From 6d5170d3fca66074fb2ea06adce9452f00232d60 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 30 Jan 2026 07:55:06 +0000 Subject: [PATCH] fix: flaky unit test in profile batch fetcher Updated `tests/app-batch-fetch-profiles.test.mjs` to correctly mock `readRelays` in addition to `relays` and `writeRelays`. `profileMetadataService.js` prioritizes `readRelays`, causing the test to make unexpected network calls when falling back to default values. This fix ensures the test isolation holds and assertions pass consistently. Also fixed a failing mock in `tests/profile-modal-controller.test.mjs` by adding a missing `load()` method to the `hashtagPreferences` service stub. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com>