File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -200,17 +200,17 @@ void main() {
200
200
test ('smoke' , () async {
201
201
final store = eg.store ();
202
202
final connection = store.connection as FakeApiConnection ;
203
- final stream = eg.channel ();
203
+ final channel = eg.channel ();
204
204
connection.prepare (json: SendMessageResult (id: 12345 ).toJson ());
205
205
await store.sendMessage (
206
- destination: StreamDestination (stream .channelId, 'world' ),
206
+ destination: StreamDestination (channel .channelId, 'world' ),
207
207
content: 'hello' );
208
208
check (connection.takeLastRequest ()).isA< http.Request > ()
209
209
..method.equals ('POST' )
210
210
..url.path.equals ('/api/v1/messages' )
211
211
..bodyFields.deepEquals ({
212
212
'type' : 'stream' ,
213
- 'to' : stream .channelId.toString (),
213
+ 'to' : channel .channelId.toString (),
214
214
'topic' : 'world' ,
215
215
'content' : 'hello' ,
216
216
'read_by_sender' : 'true' ,
You can’t perform that action at this time.
0 commit comments