@@ -140,7 +140,15 @@ describe('renderer/utils/notifications/filters/filter.ts', () => {
140140
141141 mockNotifications [ 0 ] . repository . owner . login = 'microsoft' ;
142142 mockNotifications [ 1 ] . repository . owner . login = 'github' ;
143- const result = filterDetailedNotifications ( mockNotifications , {
143+
144+ // Apply base filtering first (where organization filtering now happens)
145+ let result = filterBaseNotifications ( mockNotifications , {
146+ ...mockSettings ,
147+ filterIncludeOrganizations : [ 'microsoft' ] ,
148+ } ) ;
149+
150+ // Then apply detailed filtering
151+ result = filterDetailedNotifications ( result , {
144152 ...mockSettings ,
145153 detailedNotifications : true ,
146154 filterIncludeOrganizations : [ 'microsoft' ] ,
@@ -167,7 +175,15 @@ describe('renderer/utils/notifications/filters/filter.ts', () => {
167175
168176 mockNotifications [ 0 ] . repository . owner . login = 'microsoft' ;
169177 mockNotifications [ 1 ] . repository . owner . login = 'github' ;
170- const result = filterDetailedNotifications ( mockNotifications , {
178+
179+ // Apply base filtering first (where organization filtering now happens)
180+ let result = filterBaseNotifications ( mockNotifications , {
181+ ...mockSettings ,
182+ filterExcludeOrganizations : [ 'github' ] ,
183+ } ) ;
184+
185+ // Then apply detailed filtering
186+ result = filterDetailedNotifications ( result , {
171187 ...mockSettings ,
172188 detailedNotifications : true ,
173189 filterExcludeOrganizations : [ 'github' ] ,
0 commit comments