fix(test): mock load method for hashtag preferences service

- Adds `load: async () => {}` to the `hashtagPreferences` mock in `tests/profile-modal-controller.test.mjs`.
- Fixes `TypeError: this.hashtagPreferencesService.load is not a function` during `handleAddHashtagPreference` test execution.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-30 05:45:51 +00:00
1 parent e1ca5d993d
commit 52dc6f3588
1 file changed
+1
+1
View File
@@ -274,6 +274,7 @@ function createController(options = {}) {
return hashtagStore.disinterests.delete(normalized);
},
publish: async () => ({ ok: true }),
load: async () => {},
on: () => () => {},
};