[FakeMatrixApi] Fix sync tests.

This commit is contained in:
Christian Pauly 2019-06-28 11:56:39 +02:00
parent c56c2f0a95
commit 70a71884b6

View file

@ -310,7 +310,8 @@ class FakeMatrixApi extends MockClient {
]
}
},
"/client/r0/sync": (var req) => {
"/client/r0/sync?filters=%7B%22room%22:%7B%22include_leave%22:true,%22state%22:%7B%22lazy_load_members%22:1%7D%7D":
(var req) => {
"next_batch": Random().nextDouble().toString(),
"presence": {
"events": [
@ -375,7 +376,10 @@ class FakeMatrixApi extends MockClient {
"sender": "@alice:example.com",
"type": "m.room.message",
"txn_id": "1234",
"content": {"body": "I am a fish", "msgtype": "m.text"},
"content": {
"body": "I am a fish",
"msgtype": "m.text"
},
"origin_server_ts": 1417731086797,
"event_id": "74686972643033:example.com"
}
@ -405,7 +409,9 @@ class FakeMatrixApi extends MockClient {
},
{
"type": "org.example.custom.room.config",
"content": {"custom_config_key": "custom_config_value"}
"content": {
"custom_config_key": "custom_config_value"
}
}
]
}