mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(test): mock hashtagPreferencesService.load in profile modal tests
- Updates `tests/profile-modal-controller.test.mjs` to include a mock for `load()` in `baseHashtagPreferences`. - Resolves the `TypeError: this.hashtagPreferencesService.load is not a function` error seen in CI. - Ensures unit tests pass for ProfileModalController interactions with the hashtag pane. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
b594a87ef2
commit
2ba9b6c4a5
1 file changed
+1
@@ -275,6 +275,7 @@ function createController(options = {}) {
|
||||
},
|
||||
publish: async () => ({ ok: true }),
|
||||
on: () => () => {},
|
||||
load: async () => {},
|
||||
};
|
||||
|
||||
const hashtagPreferences = {
|
||||
|
||||
Reference in new issue
Block a user