File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -101,21 +101,25 @@ void main() {
101
101
'edit_timestamp' : 1718741351 ,
102
102
'stream_id' : eg.stream ().streamId,
103
103
};
104
+ final baseMoveJson = { ...baseJson,
105
+ 'orig_subject' : 'foo' ,
106
+ 'propagate_mode' : 'change_all' ,
107
+ };
104
108
105
109
test ('stream_id -> origStreamId' , () {
106
- check (Event .fromJson ({ ...baseJson ,
110
+ check (Event .fromJson ({ ...baseMoveJson ,
107
111
'stream_id' : 1 ,
108
112
'new_stream_id' : 2 ,
109
- }) as UpdateMessageEvent )
113
+ })). isA < UpdateMessageEvent >( )
110
114
..origStreamId.equals (1 )
111
115
..newStreamId.equals (2 );
112
116
});
113
117
114
118
test ('orig_subject -> origTopic, subject -> newTopic' , () {
115
- check (Event .fromJson ({ ...baseJson ,
119
+ check (Event .fromJson ({ ...baseMoveJson ,
116
120
'orig_subject' : 'foo' ,
117
121
'subject' : 'bar' ,
118
- }) as UpdateMessageEvent )
122
+ })). isA < UpdateMessageEvent >( )
119
123
..origTopic.equals (const TopicName ('foo' ))
120
124
..newTopic.equals (const TopicName ('bar' ));
121
125
});
You can’t perform that action at this time.
0 commit comments