Skip to content

Commit b977a1b

Browse files
committed
compose test: Check for userId when setting up compose box
Signed-off-by: Zixuan James Li <[email protected]>
1 parent e5f0bd1 commit b977a1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/widgets/compose_box_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ void main() {
5151
if (narrow case ChannelNarrow(:var streamId) || TopicNarrow(: var streamId)) {
5252
assert(store.streams.values.any((stream) => stream.streamId == streamId),
5353
'Add a channel with "streamId" the same as of $narrow.streamId to the store.');
54+
assert(store.users.values.any((user) => user.userId == account.userId),
55+
'Add an user with "userId" the same as of $account.userId to the store.');
5456
}
5557
await tester.pumpWidget(TestZulipApp(accountId: account.id,
5658
child: Column(

0 commit comments

Comments
 (0)