From 3c9f9841fc321dad47d1241efe5d45fd59450e8c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:30:26 +0000 Subject: [PATCH] fix(test): mock load method in hashtagPreferences service - Add `load: async () => {}` stub to `baseHashtagPreferences` in `tests/profile-modal-controller.test.mjs` to prevent `TypeError` during `handleAddHashtagPreference` test. - Fixes CI failure in `tests/profile-modal-controller.test.mjs` where `this.hashtagPreferencesService.load` was undefined. - Verified with `npm run test:unit:shard3`. 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..6259ff69 100644 --- a/tests/profile-modal-controller.test.mjs +++ b/tests/profile-modal-controller.test.mjs @@ -273,6 +273,7 @@ function createController(options = {}) { } return hashtagStore.disinterests.delete(normalized); }, + load: async () => {}, publish: async () => ({ ok: true }), on: () => () => {}, };