@@ -90,7 +90,10 @@ describe('countUnreadStats', () => {
9090 expected : boolean ,
9191 includeMuted : UnreadStatsIncludeMuted = 'force-include'
9292 ) {
93- const actual = _canCountConversation ( mockChat ( chat ) , { includeMuted } ) ;
93+ const actual = _canCountConversation ( mockChat ( chat ) , {
94+ activeProfile : undefined ,
95+ includeMuted,
96+ } ) ;
9497 assert . equal ( actual , expected ) ;
9598 }
9699
@@ -172,7 +175,10 @@ describe('countUnreadStats', () => {
172175 expected : boolean ,
173176 includeMuted : UnreadStatsIncludeMuted = 'force-exclude'
174177 ) {
175- const actual = isConversationUnread ( mockChat ( chat ) , { includeMuted } ) ;
178+ const actual = isConversationUnread ( mockChat ( chat ) , {
179+ activeProfile : undefined ,
180+ includeMuted,
181+ } ) ;
176182 assert . equal ( actual , expected ) ;
177183 }
178184
@@ -213,6 +219,7 @@ describe('countUnreadStats', () => {
213219 includeMuted : UnreadStatsIncludeMuted = 'force-exclude'
214220 ) {
215221 const actual = countConversationUnreadStats ( mockChat ( chat ) , {
222+ activeProfile : undefined ,
216223 includeMuted,
217224 } ) ;
218225 assert . deepEqual ( actual , mockStats ( expected ) ) ;
@@ -252,6 +259,7 @@ describe('countUnreadStats', () => {
252259 includeMuted : UnreadStatsIncludeMuted = 'force-exclude'
253260 ) {
254261 const actual = countAllConversationsUnreadStats ( chats . map ( mockChat ) , {
262+ activeProfile : undefined ,
255263 includeMuted,
256264 } ) ;
257265 assert . deepEqual ( actual , mockStats ( expected ) ) ;
@@ -323,7 +331,7 @@ describe('countUnreadStats', () => {
323331 const actual = countAllChatFoldersUnreadStats (
324332 CurrentChatFolders . fromArray ( folders ) ,
325333 chats . map ( mockChat ) ,
326- { includeMuted }
334+ { activeProfile : undefined , includeMuted }
327335 ) ;
328336
329337 assert . deepEqual ( actual , expected ) ;
0 commit comments