mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 10:22:25 +00:00
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 <[email protected]>
This commit is contained in:
1 parent
06dfe6278a
commit
3c9f9841fc
1 file changed
+1
@@ -273,6 +273,7 @@ function createController(options = {}) {
|
||||
}
|
||||
return hashtagStore.disinterests.delete(normalized);
|
||||
},
|
||||
load: async () => {},
|
||||
publish: async () => ({ ok: true }),
|
||||
on: () => () => {},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user