Skip to content

Commit

Permalink
test: Add eg.liveStore, a LivePerAccountStore
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Oct 17, 2023
1 parent 1b7d52d commit 37bfeca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/example_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
}

0 comments on commit 37bfeca

Please sign in to comment.