mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 19:35:28 +00:00
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:
1 parent
7a3476f926
commit
51c5845ae1
1 file changed
+1
@@ -274,6 +274,7 @@ function createController(options = {}) {
|
||||
return hashtagStore.disinterests.delete(normalized);
|
||||
},
|
||||
publish: async () => ({ ok: true }),
|
||||
load: async () => true,
|
||||
on: () => () => {},
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user