@@ -20,6 +20,7 @@ import 'package:zulip/widgets/actions.dart';
2020import 'package:zulip/widgets/app.dart' ;
2121import 'package:zulip/widgets/inbox.dart' ;
2222import 'package:zulip/widgets/page.dart' ;
23+ import 'package:zulip/widgets/store.dart' ;
2324
2425import '../api/fake_api.dart' ;
2526import '../example_data.dart' as eg;
@@ -106,7 +107,7 @@ void main() {
106107 final newConnection = separateConnection ()
107108 ..prepare (delay: unregisterDelay, json: {'msg' : '' , 'result' : 'success' });
108109
109- final future = logOutAccount (context, eg.selfAccount.id);
110+ final future = logOutAccount (GlobalStoreWidget . of ( context) , eg.selfAccount.id);
110111 // Unregister-token request and account removal dispatched together
111112 checkSingleUnregisterRequest (newConnection);
112113 check (testBinding.globalStore.takeDoRemoveAccountCalls ())
@@ -138,7 +139,7 @@ void main() {
138139 final newConnection = separateConnection ()
139140 ..prepare (delay: unregisterDelay, exception: exception);
140141
141- final future = logOutAccount (context, eg.selfAccount.id);
142+ final future = logOutAccount (GlobalStoreWidget . of ( context) , eg.selfAccount.id);
142143 // Unregister-token request and account removal dispatched together
143144 checkSingleUnregisterRequest (newConnection);
144145 check (testBinding.globalStore.takeDoRemoveAccountCalls ())
@@ -208,7 +209,7 @@ void main() {
208209 testNavObserver.onRemoved = (route, prevRoute) => removedRoutes.add (route);
209210
210211 final context = tester.element (find.byType (MaterialApp ));
211- final future = logOutAccount (context, account1.id);
212+ final future = logOutAccount (GlobalStoreWidget . of ( context) , account1.id);
212213 await tester.pump (TestGlobalStore .removeAccountDuration);
213214 await future;
214215 check (removedRoutes).single.identicalTo (account1Route);
0 commit comments