File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import 'package:zulip/model/binding.dart';
12
12
import 'package:zulip/model/store.dart' ;
13
13
import 'package:zulip/widgets/app.dart' ;
14
14
15
+ import '../example_data.dart' as eg;
15
16
import 'test_store.dart' ;
16
17
17
18
/// The binding instance used in tests.
@@ -86,7 +87,7 @@ class TestZulipBinding extends ZulipBinding {
86
87
///
87
88
/// Tests that access this getter, or that mount a [GlobalStoreWidget] ,
88
89
/// should clean up by calling [reset] .
89
- TestGlobalStore get globalStore => _globalStore ?? = TestGlobalStore (accounts : [] );
90
+ TestGlobalStore get globalStore => _globalStore ?? = eg. globalStore ( );
90
91
TestGlobalStore ? _globalStore;
91
92
92
93
bool _debugAlreadyLoadedStore = false ;
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ void main() {
400
400
late FakeApiConnection connection;
401
401
402
402
Future <void > prepareStore ({Account ? account}) async {
403
- globalStore = TestGlobalStore (accounts : [] );
403
+ globalStore = eg. globalStore ( );
404
404
account ?? = eg.selfAccount;
405
405
await globalStore.insertAccount (account.toCompanion (false ));
406
406
connection = (globalStore.apiConnectionFromAccount (account)
@@ -575,7 +575,7 @@ void main() {
575
575
}
576
576
577
577
Future <void > preparePoll ({int ? lastEventId}) async {
578
- globalStore = TestGlobalStore (accounts : [] );
578
+ globalStore = eg. globalStore ( );
579
579
await globalStore.add (eg.selfAccount, eg.initialSnapshot (
580
580
lastEventId: lastEventId));
581
581
await globalStore.perAccount (eg.selfAccount.id);
You can’t perform that action at this time.
0 commit comments