Skip to content

Commit 5e9943d

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 02292e7 commit 5e9943d

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed

Tests/ComposableArchitectureTests/Reducers/PresentationReducerTests.swift

+27-27
Original file line numberDiff line numberDiff line change
@@ -2618,36 +2618,36 @@ final class PresentationReducerTests: BaseTCATestCase {
26182618
}
26192619

26202620
#if !os(visionOS)
2621-
@Reducer
2622-
struct TestEphemeralBindingDismissalFeature {
2623-
@ObservableState
2624-
struct State: Equatable {
2625-
@Presents var alert: AlertState<Never>?
2626-
}
2627-
enum Action: Equatable {
2628-
case alert(PresentationAction<Never>)
2629-
}
2630-
var body: some ReducerOf<Self> {
2631-
Reduce { state, action in
2632-
return .none
2621+
@Reducer
2622+
struct TestEphemeralBindingDismissalFeature {
2623+
@ObservableState
2624+
struct State: Equatable {
2625+
@Presents var alert: AlertState<Never>?
2626+
}
2627+
enum Action: Equatable {
2628+
case alert(PresentationAction<Never>)
2629+
}
2630+
var body: some ReducerOf<Self> {
2631+
Reduce { state, action in
2632+
return .none
2633+
}
2634+
.ifLet(\.$alert, action: /Action.alert)
26332635
}
2634-
.ifLet(\.$alert, action: /Action.alert)
2635-
}
2636-
}
2637-
@MainActor
2638-
func testEphemeralBindingDismissal() async {
2639-
@Perception.Bindable var store = Store(
2640-
initialState: TestEphemeralBindingDismissalFeature.State(
2641-
alert: AlertState { TextState("Oops!") }
2642-
)
2643-
) {
2644-
TestEphemeralBindingDismissalFeature()
26452636
}
2637+
@MainActor
2638+
func testEphemeralBindingDismissal() async {
2639+
@Perception.Bindable var store = Store(
2640+
initialState: TestEphemeralBindingDismissalFeature.State(
2641+
alert: AlertState { TextState("Oops!") }
2642+
)
2643+
) {
2644+
TestEphemeralBindingDismissalFeature()
2645+
}
26462646

2647-
XCTAssertNotNil(store.alert)
2648-
$store.scope(state: \.alert, action: \.alert).wrappedValue = nil
2649-
XCTAssertNil(store.alert)
2650-
}
2647+
XCTAssertNotNil(store.alert)
2648+
$store.scope(state: \.alert, action: \.alert).wrappedValue = nil
2649+
XCTAssertNil(store.alert)
2650+
}
26512651
#endif
26522652
}
26532653

Tests/ComposableArchitectureTests/StoreTests.swift

+17-17
Original file line numberDiff line numberDiff line change
@@ -1088,26 +1088,26 @@ final class StoreTests: BaseTCATestCase {
10881088
var body: some ReducerOf<Self> { EmptyReducer() }
10891089
}
10901090

1091-
#if !os(visionOS)
1092-
@MainActor
1093-
func testInvalidatedStoreScope() async throws {
1094-
@Perception.Bindable var store = Store(
1095-
initialState: InvalidatedStoreScopeParentFeature.State(
1096-
child: InvalidatedStoreScopeChildFeature.State(
1097-
grandchild: InvalidatedStoreScopeGrandchildFeature.State()
1091+
#if !os(visionOS)
1092+
@MainActor
1093+
func testInvalidatedStoreScope() async throws {
1094+
@Perception.Bindable var store = Store(
1095+
initialState: InvalidatedStoreScopeParentFeature.State(
1096+
child: InvalidatedStoreScopeChildFeature.State(
1097+
grandchild: InvalidatedStoreScopeGrandchildFeature.State()
1098+
)
10981099
)
1099-
)
1100-
) {
1101-
InvalidatedStoreScopeParentFeature()
1102-
}
1103-
store.send(.tap)
1100+
) {
1101+
InvalidatedStoreScopeParentFeature()
1102+
}
1103+
store.send(.tap)
11041104

1105-
@Perception.Bindable var childStore = store.scope(state: \.child, action: \.child)!
1106-
let grandchildStoreBinding = $childStore.scope(state: \.grandchild, action: \.grandchild)
1105+
@Perception.Bindable var childStore = store.scope(state: \.child, action: \.child)!
1106+
let grandchildStoreBinding = $childStore.scope(state: \.grandchild, action: \.grandchild)
11071107

1108-
store.send(.child(.dismiss))
1109-
grandchildStoreBinding.wrappedValue = nil
1110-
}
1108+
store.send(.child(.dismiss))
1109+
grandchildStoreBinding.wrappedValue = nil
1110+
}
11111111
#endif
11121112

11131113
@MainActor

0 commit comments

Comments
 (0)