File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -352,15 +352,16 @@ void main() {
352
352
}
353
353
354
354
group ('to ChannelNarrow' , () {
355
+ final narrow = ChannelNarrow (channel.streamId);
356
+
355
357
testWidgets ('with empty topic' , (tester) async {
356
- await prepare (tester, narrow: ChannelNarrow (channel.streamId) );
358
+ await prepare (tester, narrow: narrow );
357
359
checkComposeBoxHintTexts (tester,
358
360
topicHintText: 'Topic' ,
359
361
contentHintText: 'Message #${channel .name } > (no topic)' );
360
362
});
361
363
362
364
testWidgets ('with non-empty topic' , (tester) async {
363
- final narrow = ChannelNarrow (channel.streamId);
364
365
await prepare (tester, narrow: narrow);
365
366
await enterTopic (tester, narrow: narrow, topic: 'new topic' );
366
367
await tester.pump ();
You can’t perform that action at this time.
0 commit comments