Files
Stephen Celis 08faf84fe3 MainActor Store Isolation (#3277)
* `@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>
2024-08-27 10:57:46 -07:00

25 lines
495 B
Swift

import ComposableArchitecture
import XCTest
@testable import SyncUps
class SyncUpDetailTests: XCTestCase {
func testDelete() async {
let syncUp = SyncUp(
id: SyncUp.ID(),
title: "Point-Free Morning Sync"
)
let store = await TestStore(initialState: SyncUpDetail.State(syncUp: Shared(syncUp))) {
SyncUpDetail()
}
await store.send(.deleteButtonTapped) {
$0.destination = .alert(.deleteSyncUp)
}
}
func testEdit() async {
// ...
}
}