mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
* `@preconcurrency @MainActor` isolation of `Store` * Remove unneeded `@MainActor`s * Remove thread checking code * Remove unneeded `@MainActor`s * Swift 5.10 compatibility fixes * wip * More 5.10 fixes * wip * fixes * wip * wip * up the timeout * wip * Fixes * Remove mainActorASAP in favor of mainActorNow. (#3288) * wip * Run swift-format * Update README.md * Fix integration tests. (#3294) * Fix integration tests. * wip * wip * Run swift-format * mainActorNow doesnt need escaping closure * wip * migration guide * wip * Update MigratingTo1.14.md --------- Co-authored-by: Brandon Williams <mbrandonw@hey.com> Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com> Co-authored-by: mbrandonw <mbrandonw@users.noreply.github.com>
22 lines
561 B
Swift
22 lines
561 B
Swift
import ComposableArchitecture
|
|
import XCTest
|
|
|
|
@testable import SyncUps
|
|
|
|
final class AppFeatureTests: XCTestCase {
|
|
func testDelete() async throws {
|
|
let syncUp = SyncUp.mock
|
|
@Shared(.syncUps) var syncUps = [syncUp]
|
|
|
|
let store = await TestStore(initialState: AppFeature.State()) {
|
|
AppFeature()
|
|
}
|
|
|
|
let sharedSyncUp = try XCTUnwrap($syncUps[id: syncUp.id])
|
|
|
|
await store.send(\.path.push, (id: 0, .detail(SyncUpDetail.State(syncUp: sharedSyncUp)))) {
|
|
$0.path[id: 0] = .detail(SyncUpDetail.State(syncUp: sharedSyncUp))
|
|
}
|
|
}
|
|
}
|