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 authored and chrisbobbe committed Oct 25, 2023
1 parent b8290cd commit ff4ad6a
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 @@ -344,3 +344,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 ff4ad6a

Please sign in to comment.