Skip to content

Commit 754caac

Browse files
committed
action_sheet test [nfc]: Add zulipFeatureLevel param to a prepare
For the sake of some new callers when we move this function definition to an outer scope.
1 parent 3331c25 commit 754caac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/widgets/action_sheet_test.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,19 @@ void main() {
118118
ZulipStream? channel,
119119
String topic = someTopic,
120120
UnreadMessagesSnapshot? unreadMsgs,
121+
int? zulipFeatureLevel,
121122
}) async {
122123
final effectiveChannel = channel ?? someChannel;
123124

124125
addTearDown(testBinding.reset);
125126

126-
await testBinding.globalStore.add(eg.selfAccount, eg.initialSnapshot(
127+
final account = eg.selfAccount.copyWith(zulipFeatureLevel: zulipFeatureLevel);
128+
await testBinding.globalStore.add(account, eg.initialSnapshot(
127129
realmUsers: [eg.selfUser, eg.otherUser],
128130
streams: [effectiveChannel],
129131
subscriptions: [eg.subscription(effectiveChannel)],
130-
unreadMsgs: unreadMsgs));
132+
unreadMsgs: unreadMsgs,
133+
zulipFeatureLevel: zulipFeatureLevel));
131134
store = await testBinding.globalStore.perAccount(eg.selfAccount.id);
132135
connection = store.connection as FakeApiConnection;
133136
}

0 commit comments

Comments
 (0)