File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,16 @@ void main() {
30
30
31
31
Future <void > prepare (WidgetTester tester, {
32
32
UnreadMessagesSnapshot ? unreadMsgs,
33
+ String ? ackedPushToken = '123' ,
33
34
}) async {
34
35
addTearDown (testBinding.reset);
35
- await testBinding.globalStore.add (eg.selfAccount, eg.initialSnapshot (
36
+ final selfAccount = eg.selfAccount.copyWith (ackedPushToken: Value (ackedPushToken));
37
+ await testBinding.globalStore.add (selfAccount, eg.initialSnapshot (
36
38
unreadMsgs: unreadMsgs));
37
- store = await testBinding.globalStore.perAccount (eg. selfAccount.id);
39
+ store = await testBinding.globalStore.perAccount (selfAccount.id);
38
40
connection = store.connection as FakeApiConnection ;
39
41
40
- await tester.pumpWidget (TestZulipApp (accountId: eg. selfAccount.id,
42
+ await tester.pumpWidget (TestZulipApp (accountId: selfAccount.id,
41
43
child: const Scaffold (body: Placeholder ())));
42
44
await tester.pump ();
43
45
context = tester.element (find.byType (Placeholder ));
You can’t perform that action at this time.
0 commit comments