Skip to content

Commit 449f3d7

Browse files
committed
action_sheet test [nfc]: Add visibilityPolicy to a prepare
For the sake of some new callers when we move this function definition to an outer scope.
1 parent 1dc1808 commit 449f3d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/widgets/action_sheet_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ void main() {
119119
String topic = someTopic,
120120
bool isChannelSubscribed = true,
121121
bool? isChannelMuted,
122+
UserTopicVisibilityPolicy? visibilityPolicy,
122123
UnreadMessagesSnapshot? unreadMsgs,
123124
int? zulipFeatureLevel,
124125
}) async {
@@ -134,6 +135,9 @@ void main() {
134135
subscriptions: isChannelSubscribed
135136
? [eg.subscription(effectiveChannel, isMuted: isChannelMuted ?? false)]
136137
: null,
138+
userTopics: visibilityPolicy != null
139+
? [eg.userTopicItem(effectiveChannel, topic, visibilityPolicy)]
140+
: null,
137141
unreadMsgs: unreadMsgs,
138142
zulipFeatureLevel: zulipFeatureLevel));
139143
store = await testBinding.globalStore.perAccount(eg.selfAccount.id);

0 commit comments

Comments
 (0)