mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-13 00:02:40 +00:00
fix(ui): profile modal controller instantiation order
- Moved controller instantiation (DM, Relay, Hashtag) to after services setup in `ProfileModalController.js`. - Fixed `ProfileHashtagController` usage of uninitialized services. - Updated `profile-modal-controller.test.mjs` mock to include `uiReady/dataReady` flags and use correct service access pattern. - Resolved CI failures in `profile-modal-controller.test.mjs`. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
f8b8bae2e8
commit
4059d52847
2 files changed
+12
-10
No files matched your search
@@ -312,6 +312,8 @@ function createController(options = {}) {
|
||||
eventId: null,
|
||||
createdAt: null,
|
||||
loaded: true,
|
||||
uiReady: true,
|
||||
dataReady: true,
|
||||
}),
|
||||
describeHashtagPreferencesError: () => '',
|
||||
onAccessControlUpdated: async () => {},
|
||||
@@ -961,7 +963,7 @@ for (const _ of [0]) {
|
||||
const interestList = document.getElementById('profileHashtagInterestList');
|
||||
assert.equal(interestList?.querySelectorAll('li').length, 1);
|
||||
|
||||
controller.hashtagPreferencesService.removeInterest('art');
|
||||
controller.services.hashtagPreferences.removeInterest('art');
|
||||
await controller.handleAuthLogout({});
|
||||
await waitForAnimationFrame(window, 2);
|
||||
|
||||
|
||||
Reference in new issue
Block a user