From 5ac9b6bd7319d3a6bdd47083f61f7b320a32173d Mon Sep 17 00:00:00 2001 From: Jayesh Nirve Date: Thu, 26 Aug 2021 03:50:27 +0530 Subject: [PATCH] fix: dartfmt --- test/room_test.dart | 56 ++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/test/room_test.dart b/test/room_test.dart index d3f6c45a..f3835ea6 100644 --- a/test/room_test.dart +++ b/test/room_test.dart @@ -211,20 +211,20 @@ void main() { expect(room.lastEvent.body, 'cdc'); room.setState( Event( - senderId: '@test:example.com', - type: 'm.room.encrypted', - roomId: room.id, - room: room, - eventId: '3', - originServerTs: DateTime.now(), - content: { - 'm.new_content': {'msgtype': 'm.text', 'body': 'test ok'}, - 'm.relates_to': {'rel_type': 'm.replace', 'event_id': '1'}, - 'msgtype': 'm.text', - 'body': '* test ok', - }, - stateKey: '', - ), + senderId: '@test:example.com', + type: 'm.room.encrypted', + roomId: room.id, + room: room, + eventId: '3', + originServerTs: DateTime.now(), + content: { + 'm.new_content': {'msgtype': 'm.text', 'body': 'test ok'}, + 'm.relates_to': {'rel_type': 'm.replace', 'event_id': '1'}, + 'msgtype': 'm.text', + 'body': '* test ok', + }, + stateKey: '', + ), ); expect(room.lastEvent.body, 'cdc'); // because we edited the "cd" message room.setState( @@ -280,20 +280,20 @@ void main() { expect(room.lastEvent.body, 'B'); room.setState( Event( - senderId: '@test:example.com', - type: 'm.room.encrypted', - roomId: room.id, - room: room, - eventId: '7', - originServerTs: DateTime.now(), - content: { - 'msgtype': 'm.text', - 'body': 'edited A', - 'm.new_content': {'msgtype': 'm.text', 'body': 'edited A'}, - 'm.relates_to': {'rel_type': 'm.replace', 'event_id': '5'}, - }, - stateKey: '', - ), + senderId: '@test:example.com', + type: 'm.room.encrypted', + roomId: room.id, + room: room, + eventId: '7', + originServerTs: DateTime.now(), + content: { + 'msgtype': 'm.text', + 'body': 'edited A', + 'm.new_content': {'msgtype': 'm.text', 'body': 'edited A'}, + 'm.relates_to': {'rel_type': 'm.replace', 'event_id': '5'}, + }, + stateKey: '', + ), ); expect(room.lastEvent.body, 'B'); });