File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 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 @@ -428,7 +428,7 @@ void main() {
428
428
late FakeApiConnection connection;
429
429
430
430
Future <void > prepareStore ({Account ? account}) async {
431
- globalStore = TestGlobalStore (accounts : [] );
431
+ globalStore = eg. globalStore ( );
432
432
account ?? = eg.selfAccount;
433
433
await globalStore.insertAccount (account.toCompanion (false ));
434
434
connection = (globalStore.apiConnectionFromAccount (account)
@@ -603,7 +603,7 @@ void main() {
603
603
}
604
604
605
605
Future <void > preparePoll ({int ? lastEventId}) async {
606
- globalStore = TestGlobalStore (accounts : [] );
606
+ globalStore = eg. globalStore ( );
607
607
await globalStore.add (eg.selfAccount, eg.initialSnapshot (
608
608
lastEventId: lastEventId));
609
609
await globalStore.perAccount (eg.selfAccount.id);
You can’t perform that action at this time.
0 commit comments