From 37bfeca133f89284bfafb1253782ed296c7eebc9 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 16 Oct 2023 17:16:03 -0700 Subject: [PATCH] test: Add eg.liveStore, a LivePerAccountStore --- test/example_data.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/example_data.dart b/test/example_data.dart index 776605b1da..6b264a98f7 100644 --- a/test/example_data.dart +++ b/test/example_data.dart @@ -282,3 +282,11 @@ PerAccountStore store({Account? account, InitialSnapshot? initialSnapshot}) { initialSnapshot: initialSnapshot ?? _initialSnapshot(), ); } + +LivePerAccountStore liveStore({Account? account, InitialSnapshot? initialSnapshot}) { + return LivePerAccountStore.fromInitialSnapshot( + account: account ?? selfAccount, + connection: FakeApiConnection.fromAccount(account ?? selfAccount), + initialSnapshot: initialSnapshot ?? _initialSnapshot(), + ); +}