From 2ba9b6c4a5d17319aecb24b5e74f3650787e5b58 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 00:27:28 +0000 Subject: [PATCH] fix(test): mock hashtagPreferencesService.load in profile modal tests - Updates `tests/profile-modal-controller.test.mjs` to include a mock for `load()` in `baseHashtagPreferences`. - Resolves the `TypeError: this.hashtagPreferencesService.load is not a function` error seen in CI. - Ensures unit tests pass for ProfileModalController interactions with the hashtag pane. Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- tests/profile-modal-controller.test.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/profile-modal-controller.test.mjs b/tests/profile-modal-controller.test.mjs index f14c3730..9d746088 100644 --- a/tests/profile-modal-controller.test.mjs +++ b/tests/profile-modal-controller.test.mjs @@ -275,6 +275,7 @@ function createController(options = {}) { }, publish: async () => ({ ok: true }), on: () => () => {}, + load: async () => {}, }; const hashtagPreferences = {