@@ -109,7 +109,7 @@ describe("MatrixClient room timelines", function() {
109109 client = testClient . client ;
110110
111111 setNextSyncData ( ) ;
112- httpBackend . when ( "GET" , "/capabilities " ) . respond ( 200 , { capabilities : { } } ) ;
112+ httpBackend . when ( "GET" , "/versions " ) . respond ( 200 , { } ) ;
113113 httpBackend . when ( "GET" , "/pushrules" ) . respond ( 200 , { } ) ;
114114 httpBackend . when ( "POST" , "/filter" ) . respond ( 200 , { filter_id : "fid" } ) ;
115115 httpBackend . when ( "GET" , "/sync" ) . respond ( 200 , SYNC_DATA ) ;
@@ -118,7 +118,7 @@ describe("MatrixClient room timelines", function() {
118118 } ) ;
119119 client . startClient ( ) ;
120120
121- await httpBackend . flush ( "/capabilities " ) ;
121+ await httpBackend . flush ( "/versions " ) ;
122122 await httpBackend . flush ( "/pushrules" ) ;
123123 await httpBackend . flush ( "/filter" ) ;
124124 } ) ;
@@ -553,6 +553,7 @@ describe("MatrixClient room timelines", function() {
553553 NEXT_SYNC_DATA . rooms . join [ roomId ] . timeline . limited = true ;
554554
555555 return Promise . all ( [
556+ httpBackend . flush ( "/versions" , 1 ) ,
556557 httpBackend . flush ( "/sync" , 1 ) ,
557558 utils . syncPromise ( client ) ,
558559 ] ) . then ( ( ) => {
0 commit comments