fix: resolve missing mock method in profile modal tests

Added the missing `load()` method to the `hashtagPreferences` mock in `tests/profile-modal-controller.test.mjs`. This resolves the `TypeError` encountered during the `handleAddHashtagPreference` test case, ensuring the test suite passes consistently in CI.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-30 07:48:19 +00:00
1 parent 7a3476f926
commit 51c5845ae1
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 () => true,
on: () => () => {},
};