-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
TestStore.bindings
for testing bindable view state (#2394)
* Add `TestStore.bindings` for testing bindable view state Because `@BindingViewState` is populated by a live store, there is no way to easily test `ViewState` structs that use `@BindingViewState`. This adds a `bindings` property on `TestStore` (`bindings(action:)` method when using view actions) that makes it possible to write assertions against view state. * Update Tests/ComposableArchitectureTests/BindableStoreTests.swift Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com> * Update Tests/ComposableArchitectureTests/BindableStoreTests.swift Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com> * wip --------- Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
- Loading branch information
1 parent
5ba73d2
commit d22ed09
Showing
4 changed files
with
215 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters