File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,19 +118,19 @@ void main() {
118
118
});
119
119
120
120
group ('Message' , () {
121
- Map <String , dynamic > baseStreamJson () =>
121
+ Map <String , dynamic > baseChannelJson () =>
122
122
deepToJson (eg.channelMessage ()) as Map <String , dynamic >;
123
123
124
124
test ('subject -> topic' , () {
125
- check (baseStreamJson ()).not ((it) => it.containsKey ('topic' ));
126
- check (Message .fromJson (baseStreamJson ()
125
+ check (baseChannelJson ()).not ((it) => it.containsKey ('topic' ));
126
+ check (Message .fromJson (baseChannelJson ()
127
127
..['subject' ] = 'hello'
128
128
)).topic.equals ('hello' );
129
129
});
130
130
131
131
test ('match_subject -> matchTopic' , () {
132
- check (baseStreamJson ()).not ((it) => it.containsKey ('match_topic' ));
133
- check (Message .fromJson (baseStreamJson ()
132
+ check (baseChannelJson ()).not ((it) => it.containsKey ('match_topic' ));
133
+ check (Message .fromJson (baseChannelJson ()
134
134
..['match_subject' ] = 'yo'
135
135
)).matchTopic.equals ('yo' );
136
136
});
You can’t perform that action at this time.
0 commit comments