From 7d325e49db33a86559915d90a020e1a9e56a8588 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 06:45:47 +0000 Subject: [PATCH] Fix profile-modal-controller test mock - Update `tests/profile-modal-controller.test.mjs` to include a mock for `hashtagPreferences.load`. - Fixes `TypeError: this.hashtagPreferencesService.load is not a function` in unit tests. - Ensures all tests pass locally. 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..4b8fbf7b 100644 --- a/tests/profile-modal-controller.test.mjs +++ b/tests/profile-modal-controller.test.mjs @@ -274,6 +274,7 @@ function createController(options = {}) { return hashtagStore.disinterests.delete(normalized); }, publish: async () => ({ ok: true }), + load: async () => {}, on: () => () => {}, };