fix: dartfmt
This commit is contained in:
parent
0281261a8c
commit
5ac9b6bd73
|
|
@ -211,20 +211,20 @@ void main() {
|
||||||
expect(room.lastEvent.body, 'cdc');
|
expect(room.lastEvent.body, 'cdc');
|
||||||
room.setState(
|
room.setState(
|
||||||
Event(
|
Event(
|
||||||
senderId: '@test:example.com',
|
senderId: '@test:example.com',
|
||||||
type: 'm.room.encrypted',
|
type: 'm.room.encrypted',
|
||||||
roomId: room.id,
|
roomId: room.id,
|
||||||
room: room,
|
room: room,
|
||||||
eventId: '3',
|
eventId: '3',
|
||||||
originServerTs: DateTime.now(),
|
originServerTs: DateTime.now(),
|
||||||
content: {
|
content: {
|
||||||
'm.new_content': {'msgtype': 'm.text', 'body': 'test ok'},
|
'm.new_content': {'msgtype': 'm.text', 'body': 'test ok'},
|
||||||
'm.relates_to': {'rel_type': 'm.replace', 'event_id': '1'},
|
'm.relates_to': {'rel_type': 'm.replace', 'event_id': '1'},
|
||||||
'msgtype': 'm.text',
|
'msgtype': 'm.text',
|
||||||
'body': '* test ok',
|
'body': '* test ok',
|
||||||
},
|
},
|
||||||
stateKey: '',
|
stateKey: '',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
expect(room.lastEvent.body, 'cdc'); // because we edited the "cd" message
|
expect(room.lastEvent.body, 'cdc'); // because we edited the "cd" message
|
||||||
room.setState(
|
room.setState(
|
||||||
|
|
@ -280,20 +280,20 @@ void main() {
|
||||||
expect(room.lastEvent.body, 'B');
|
expect(room.lastEvent.body, 'B');
|
||||||
room.setState(
|
room.setState(
|
||||||
Event(
|
Event(
|
||||||
senderId: '@test:example.com',
|
senderId: '@test:example.com',
|
||||||
type: 'm.room.encrypted',
|
type: 'm.room.encrypted',
|
||||||
roomId: room.id,
|
roomId: room.id,
|
||||||
room: room,
|
room: room,
|
||||||
eventId: '7',
|
eventId: '7',
|
||||||
originServerTs: DateTime.now(),
|
originServerTs: DateTime.now(),
|
||||||
content: {
|
content: {
|
||||||
'msgtype': 'm.text',
|
'msgtype': 'm.text',
|
||||||
'body': 'edited A',
|
'body': 'edited A',
|
||||||
'm.new_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'},
|
'm.relates_to': {'rel_type': 'm.replace', 'event_id': '5'},
|
||||||
},
|
},
|
||||||
stateKey: '',
|
stateKey: '',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
expect(room.lastEvent.body, 'B');
|
expect(room.lastEvent.body, 'B');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue