mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 03:12:31 +00:00
fix(test): mock load method in profile-modal-controller test
- Add missing `load` method to `baseHashtagPreferences` mock in `tests/profile-modal-controller.test.mjs` to fix `TypeError: this.hashtagPreferencesService.load is not a function` in unit tests. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
952dc58ade
commit
ced1f5456f
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