mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
Update docs/examples to leverage TestStore.send(\.path) (#2868)
This commit is contained in:
@@ -25,7 +25,7 @@ final class SyncUpsListTests: XCTestCase {
|
||||
}
|
||||
|
||||
syncUp.title = "Engineering"
|
||||
await store.send(.destination(.presented(.add(.set(\.syncUp, syncUp))))) {
|
||||
await store.send(\.destination.add.syncUp, syncUp) {
|
||||
$0.$destination[case: \.add]?.syncUp.title = "Engineering"
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ final class SyncUpsListTests: XCTestCase {
|
||||
|
||||
XCTAssertEqual(store.state.destination, .alert(.dataFailedToLoad))
|
||||
|
||||
await store.send(.destination(.presented(.alert(.confirmLoadMockData)))) {
|
||||
await store.send(\.destination.alert.confirmLoadMockData) {
|
||||
$0.destination = nil
|
||||
$0.syncUps = [
|
||||
.mock,
|
||||
|
||||
Reference in New Issue
Block a user