handle room update message (#79)

This commit is contained in:
davidliu
2022-02-07 12:37:47 +09:00
committed by GitHub
parent 9bd546b9a2
commit 29c2117453
6 changed files with 41 additions and 4 deletions
+8 -3
View File
@@ -84,10 +84,15 @@ void main() {
);
});
test('room update', () async {
test('room metadata update', () async {
expect(
room.events.streamCtrl.stream,
emits(predicate<RoomMetadataChangedEvent>((event) =>
event.metadata == roomUpdateResponse.roomUpdate.room.metadata &&
room.metadata == event.metadata)),
);
ws.onData(roomUpdateResponse.writeToBuffer());
// TODO: room update event and handling
}, skip: 'todo');
});
test('connection quality', () async {
expect(