Skip to content

Commit 7907390

Browse files
committed
store test [nfc]: Rename stream to channel
Fixes parts of #631
1 parent 87e7fd0 commit 7907390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/model/store_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,17 @@ void main() {
200200
test('smoke', () async {
201201
final store = eg.store();
202202
final connection = store.connection as FakeApiConnection;
203-
final stream = eg.channel();
203+
final channel = eg.channel();
204204
connection.prepare(json: SendMessageResult(id: 12345).toJson());
205205
await store.sendMessage(
206-
destination: StreamDestination(stream.channelId, 'world'),
206+
destination: StreamDestination(channel.channelId, 'world'),
207207
content: 'hello');
208208
check(connection.takeLastRequest()).isA<http.Request>()
209209
..method.equals('POST')
210210
..url.path.equals('/api/v1/messages')
211211
..bodyFields.deepEquals({
212212
'type': 'stream',
213-
'to': stream.channelId.toString(),
213+
'to': channel.channelId.toString(),
214214
'topic': 'world',
215215
'content': 'hello',
216216
'read_by_sender': 'true',

0 commit comments

Comments
 (0)