Skip to content

Commit c655631

Browse files
committed
msglist test: Add fetchInitial smoke test that uses a topic narrow
1 parent 1b59036 commit c655631

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/model/message_list_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ void main() {
9696
}
9797

9898
group('fetchInitial', () {
99+
final someChannel = eg.stream();
100+
const someTopic = 'some topic';
101+
99102
group('smoke', () {
100103
Future<void> smoke(
101104
Narrow narrow,
@@ -126,6 +129,11 @@ void main() {
126129
test('CombinedFeedNarrow', () async {
127130
await smoke(const CombinedFeedNarrow(), (i) => eg.streamMessage());
128131
});
132+
133+
test('TopicNarrow', () async {
134+
await smoke(TopicNarrow(someChannel.streamId, eg.t(someTopic)),
135+
(i) => eg.streamMessage(stream: someChannel, topic: someTopic));
136+
});
129137
});
130138

131139
test('short history', () async {

0 commit comments

Comments
 (0)