Skip to content

Commit f7c7521

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent cd22f6a commit f7c7521

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/ComposableArchitectureTests/ComposableArchitectureTests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,43 +114,43 @@ final class ComposableArchitectureTests: XCTestCase {
114114
func testCancellation() async {
115115
await _withMainSerialExecutor {
116116
let mainQueue = DispatchQueue.test
117-
117+
118118
enum Action: Equatable {
119119
case cancel
120120
case incr
121121
case response(Int)
122122
}
123-
123+
124124
let reducer = Reduce<Int, Action> { state, action in
125125
enum CancelID {}
126-
126+
127127
switch action {
128128
case .cancel:
129129
return .cancel(id: CancelID.self)
130-
130+
131131
case .incr:
132132
state += 1
133133
return .task { [state] in
134134
try await mainQueue.sleep(for: .seconds(1))
135135
return .response(state * state)
136136
}
137137
.cancellable(id: CancelID.self)
138-
138+
139139
case let .response(value):
140140
state = value
141141
return .none
142142
}
143143
}
144-
144+
145145
let store = TestStore(
146146
initialState: 0,
147147
reducer: reducer
148148
)
149-
149+
150150
await store.send(.incr) { $0 = 1 }
151151
await mainQueue.advance(by: .seconds(1))
152152
await store.receive(.response(1))
153-
153+
154154
await store.send(.incr) { $0 = 2 }
155155
await store.send(.cancel)
156156
await store.finish()

0 commit comments

Comments
 (0)