@@ -81,7 +81,7 @@ describe(performValidateActiveConversation, () => {
81
81
. call ( getRoomIdForAlias , '#' + alias )
82
82
. not . call ( apiJoinRoom , conversationId )
83
83
. put ( rawSetActiveConversationId ( conversationId ) )
84
- . call ( markConversationAsRead , conversationId )
84
+ . spawn ( markConversationAsRead , conversationId )
85
85
. run ( ) ;
86
86
87
87
expect ( storeState . chat . activeConversationId ) . toBe ( conversationId ) ;
@@ -170,7 +170,7 @@ describe(performValidateActiveConversation, () => {
170
170
[ matchers . call . fn ( markConversationAsRead ) , undefined ] ,
171
171
] )
172
172
. put ( rawSetActiveConversationId ( 'social-channel' ) )
173
- . call ( markConversationAsRead , 'social-channel' )
173
+ . spawn ( markConversationAsRead , 'social-channel' )
174
174
. not . call ( openFirstConversation )
175
175
. run ( ) ;
176
176
} ) ;
@@ -193,11 +193,11 @@ describe(performValidateActiveConversation, () => {
193
193
[ matchers . call . fn ( getHistory ) , history ] ,
194
194
] )
195
195
. put ( rawSetActiveConversationId ( 'convo-1' ) )
196
- . call ( markConversationAsRead , 'convo-1' )
196
+ . spawn ( markConversationAsRead , 'convo-1' )
197
197
. run ( ) ;
198
198
} ) ;
199
199
200
- it ( 'does not set active conversation ID if URL path has changed during validation' , async ( ) => {
200
+ it ( 'does not set active conversation ID or mark conversation as read if URL path has changed during validation' , async ( ) => {
201
201
const initialState = new StoreBuilder ( )
202
202
. withCurrentUser ( { id : 'current-user' } )
203
203
. withConversationList ( { id : 'convo-1' , name : 'Conversation 1' , otherMembers : [ { userId : 'user-2' } as User ] } ) ;
@@ -229,7 +229,7 @@ describe(performValidateActiveConversation, () => {
229
229
} ,
230
230
] )
231
231
. not . put ( rawSetActiveConversationId ( 'convo-1' ) )
232
- . call ( markConversationAsRead , 'convo-1' )
232
+ . not . spawn ( markConversationAsRead , 'convo-1' )
233
233
. run ( ) ;
234
234
} ) ;
235
235
} ) ;
0 commit comments