mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Fix profile-modal-controller test mock
- Update `tests/profile-modal-controller.test.mjs` to include a mock for `hashtagPreferences.load`. - Fixes `TypeError: this.hashtagPreferencesService.load is not a function` in unit tests. - Ensures all tests pass locally. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
a6bf25f9fc
commit
7d325e49db
1 file changed
+1
@@ -274,6 +274,7 @@ function createController(options = {}) {
|
||||
return hashtagStore.disinterests.delete(normalized);
|
||||
},
|
||||
publish: async () => ({ ok: true }),
|
||||
load: async () => {},
|
||||
on: () => () => {},
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user