File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -2989,6 +2989,31 @@ describe("TriggerChatTransport", function () {
29892989 return trackedRunStore . deleteCalls . includes ( "chat-cleanup" ) ;
29902990 } ) ;
29912991
2992+ expect ( trackedRunStore . setSnapshots ) . toHaveLength ( 4 ) ;
2993+ expect ( trackedRunStore . setSnapshots [ 0 ] ) . toMatchObject ( {
2994+ chatId : "chat-cleanup" ,
2995+ runId : "run_cleanup" ,
2996+ isActive : true ,
2997+ lastEventId : undefined ,
2998+ } ) ;
2999+ expect ( trackedRunStore . setSnapshots [ 1 ] ) . toMatchObject ( {
3000+ chatId : "chat-cleanup" ,
3001+ runId : "run_cleanup" ,
3002+ isActive : true ,
3003+ lastEventId : "1-0" ,
3004+ } ) ;
3005+ expect ( trackedRunStore . setSnapshots [ 2 ] ) . toMatchObject ( {
3006+ chatId : "chat-cleanup" ,
3007+ runId : "run_cleanup" ,
3008+ isActive : true ,
3009+ lastEventId : "2-0" ,
3010+ } ) ;
3011+ expect ( trackedRunStore . setSnapshots [ 3 ] ) . toMatchObject ( {
3012+ chatId : "chat-cleanup" ,
3013+ runId : "run_cleanup" ,
3014+ isActive : false ,
3015+ lastEventId : "2-0" ,
3016+ } ) ;
29923017 expect ( trackedRunStore . get ( "chat-cleanup" ) ) . toBeUndefined ( ) ;
29933018 } ) ;
29943019
You can’t perform that action at this time.
0 commit comments