@@ -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;
@@ -109,7 +110,7 @@ void main() {
109110 final newConnection = separateConnection ()
110111 ..prepare (delay: unregisterDelay, json: {'msg' : '' , 'result' : 'success' });
111112
112- final future = logOutAccount (context, eg.selfAccount.id);
113+ final future = logOutAccount (GlobalStoreWidget . of ( context) , eg.selfAccount.id);
113114 // Unregister-token request and account removal dispatched together
114115 checkSingleUnregisterRequest (newConnection);
115116 check (testBinding.globalStore.takeDoRemoveAccountCalls ())
@@ -141,7 +142,7 @@ void main() {
141142 final newConnection = separateConnection ()
142143 ..prepare (delay: unregisterDelay, exception: exception);
143144
144- final future = logOutAccount (context, eg.selfAccount.id);
145+ final future = logOutAccount (GlobalStoreWidget . of ( context) , eg.selfAccount.id);
145146 // Unregister-token request and account removal dispatched together
146147 checkSingleUnregisterRequest (newConnection);
147148 check (testBinding.globalStore.takeDoRemoveAccountCalls ())
@@ -211,7 +212,7 @@ void main() {
211212 testNavObserver.onRemoved = (route, prevRoute) => removedRoutes.add (route);
212213
213214 final context = tester.element (find.byType (MaterialApp ));
214- final future = logOutAccount (context, account1.id);
215+ final future = logOutAccount (GlobalStoreWidget . of ( context) , account1.id);
215216 await tester.pump (TestGlobalStore .removeAccountDuration);
216217 await future;
217218 check (removedRoutes).single.identicalTo (account1Route);
0 commit comments