fix: dartfmt

This commit is contained in:
Jayesh Nirve 2021-08-26 03:50:27 +05:30
parent 0281261a8c
commit 5ac9b6bd73
No known key found for this signature in database
GPG Key ID: E9F26B1FCEB549BD
1 changed files with 28 additions and 28 deletions

View File

@ -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');
});