Skip to content

Commit 9f674c3

Browse files
committed
mock added
1 parent 05c79d9 commit 9f674c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/components/__tests__/NotificationCenter.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const mocks = vi.hoisted(() => {
4848
mockNotificationsState,
4949
mockNotifications: createDerivedStore(mockNotificationsState, s => s.notifications),
5050
mockUnreadCount: createDerivedStore(mockNotificationsState, s => s.notifications.filter(n => n.status !== 'read').length),
51+
mockLoading: createDerivedStore(mockNotificationsState, s => s.loading),
5152
mockGoto: null as unknown as ReturnType<typeof vi.fn>,
5253
mockNotificationStore: null as unknown as {
5354
subscribe: typeof mockNotificationsState.subscribe;
@@ -85,6 +86,7 @@ vi.mock('../../stores/notificationStore', () => ({
8586
get notificationStore() { return mocks.mockNotificationStore; },
8687
get notifications() { return mocks.mockNotifications; },
8788
get unreadCount() { return mocks.mockUnreadCount; },
89+
get loading() { return mocks.mockLoading; },
8890
}));
8991

9092
// Mock EventSource with instance tracking

0 commit comments

Comments
 (0)