@@ -60,7 +60,7 @@ describe("MatrixClient relations", () => {
6060
6161 await httpBackend ! . flushAllExpected ( ) ;
6262
63- expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" } ) ;
63+ expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" , "originalEvent" : null , "prevBatch" : null } ) ;
6464 } ) ;
6565
6666 it ( "should read related events with relation type" , async ( ) => {
@@ -72,7 +72,7 @@ describe("MatrixClient relations", () => {
7272
7373 await httpBackend ! . flushAllExpected ( ) ;
7474
75- expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" } ) ;
75+ expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" , "originalEvent" : null , "prevBatch" : null } ) ;
7676 } ) ;
7777
7878 it ( "should read related events with relation type and event type" , async ( ) => {
@@ -87,7 +87,7 @@ describe("MatrixClient relations", () => {
8787
8888 await httpBackend ! . flushAllExpected ( ) ;
8989
90- expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" } ) ;
90+ expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" , "originalEvent" : null , "prevBatch" : null } ) ;
9191 } ) ;
9292
9393 it ( "should read related events with custom options" , async ( ) => {
@@ -107,7 +107,7 @@ describe("MatrixClient relations", () => {
107107
108108 await httpBackend ! . flushAllExpected ( ) ;
109109
110- expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" } ) ;
110+ expect ( await response ) . toEqual ( { "events" : [ ] , "nextBatch" : "NEXT" , "originalEvent" : null , "prevBatch" : null } ) ;
111111 } ) ;
112112
113113 it ( 'should use default direction in the fetchRelations endpoint' , async ( ) => {
@@ -122,6 +122,6 @@ describe("MatrixClient relations", () => {
122122
123123 await httpBackend ! . flushAllExpected ( ) ;
124124
125- expect ( await response ) . toEqual ( { "chunk" : [ ] , "next_batch" : "NEXT" } ) ;
125+ expect ( await response ) . toEqual ( { "chunk" : [ ] , "next_batch" : "NEXT" , "originalEvent" : null , "prevBatch" : null } ) ;
126126 } ) ;
127127} ) ;
0 commit comments