@@ -20,6 +20,7 @@ import 'package:zulip/widgets/actions.dart';
20
20
import 'package:zulip/widgets/app.dart' ;
21
21
import 'package:zulip/widgets/inbox.dart' ;
22
22
import 'package:zulip/widgets/page.dart' ;
23
+ import 'package:zulip/widgets/store.dart' ;
23
24
24
25
import '../api/fake_api.dart' ;
25
26
import '../example_data.dart' as eg;
@@ -109,7 +110,7 @@ void main() {
109
110
final newConnection = separateConnection ()
110
111
..prepare (delay: unregisterDelay, json: {'msg' : '' , 'result' : 'success' });
111
112
112
- final future = logOutAccount (context, eg.selfAccount.id);
113
+ final future = logOutAccount (GlobalStoreWidget . of ( context) , eg.selfAccount.id);
113
114
// Unregister-token request and account removal dispatched together
114
115
checkSingleUnregisterRequest (newConnection);
115
116
check (testBinding.globalStore.takeDoRemoveAccountCalls ())
@@ -141,7 +142,7 @@ void main() {
141
142
final newConnection = separateConnection ()
142
143
..prepare (delay: unregisterDelay, exception: exception);
143
144
144
- final future = logOutAccount (context, eg.selfAccount.id);
145
+ final future = logOutAccount (GlobalStoreWidget . of ( context) , eg.selfAccount.id);
145
146
// Unregister-token request and account removal dispatched together
146
147
checkSingleUnregisterRequest (newConnection);
147
148
check (testBinding.globalStore.takeDoRemoveAccountCalls ())
@@ -211,7 +212,7 @@ void main() {
211
212
testNavObserver.onRemoved = (route, prevRoute) => removedRoutes.add (route);
212
213
213
214
final context = tester.element (find.byType (MaterialApp ));
214
- final future = logOutAccount (context, account1.id);
215
+ final future = logOutAccount (GlobalStoreWidget . of ( context) , account1.id);
215
216
await tester.pump (TestGlobalStore .removeAccountDuration);
216
217
await future;
217
218
check (removedRoutes).single.identicalTo (account1Route);
0 commit comments