Skip to content

Commit a5725c9

Browse files
committed
test: Add eg.liveStore, a LivePerAccountStore
1 parent 58f3035 commit a5725c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/example_data.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,11 @@ PerAccountStore store({Account? account, InitialSnapshot? initialSnapshot}) {
282282
initialSnapshot: initialSnapshot ?? _initialSnapshot(),
283283
);
284284
}
285+
286+
LivePerAccountStore liveStore({Account? account, InitialSnapshot? initialSnapshot}) {
287+
return LivePerAccountStore.fromInitialSnapshot(
288+
account: account ?? selfAccount,
289+
connection: FakeApiConnection.fromAccount(account ?? selfAccount),
290+
initialSnapshot: initialSnapshot ?? _initialSnapshot(),
291+
);
292+
}

0 commit comments

Comments
 (0)