Update docs/examples to leverage TestStore.send(\.path) (#2868)

This commit is contained in:
Stephen Celis
2024-02-28 17:57:35 -08:00
committed by GitHub
parent b070b765e1
commit 59f5eec0ff
53 changed files with 316 additions and 191 deletions

View File

@@ -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,