Skip to content

Commit 2906475

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

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
@@ -48,6 +48,8 @@ void main() {
4848
if (narrow case ChannelNarrow(:var streamId) || TopicNarrow(: var streamId)) {
4949
assert(store.streams.values.any((stream) => stream.streamId == streamId),
5050
'Add a channel with "streamId" the same as of $narrow.streamId to the store.');
51+
assert(store.users.values.any((user) => user.userId == account.userId),
52+
'Add an user with "userId" the same as of $account.userId to the store.');
5153
}
5254
await tester.pumpWidget(TestZulipApp(accountId: account.id,
5355
child: Column(

0 commit comments

Comments
 (0)