File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/ComposableArchitecture/TestSupport Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ extension Effect {
39
39
/// > { state, action, environment in
40
40
/// switch action {
41
41
/// case .decrementButtonTapped:
42
- /// if state > 0 {
42
+ /// if state.count > 0 {
43
43
/// state.count -= 0
44
44
/// return .none
45
45
/// } else {
@@ -61,14 +61,14 @@ extension Effect {
61
61
/// ```swift
62
62
/// func testIncrement() {
63
63
/// let store = TestStore(
64
- /// initialState: CounterState(count: 0)
64
+ /// initialState: CounterState(count: 0),
65
65
/// reducer: counterReducer,
66
66
/// environment: CounterEnvironment(
67
- /// playSound: .unimplemented("playSound")
67
+ /// playAlertSound: { .unimplemented("playAlertSound") }
68
68
/// )
69
69
/// )
70
70
///
71
- /// store.send(.increment ) {
71
+ /// store.send(.incrementButtonTapped ) {
72
72
/// $0.count = 1
73
73
/// }
74
74
/// }
You can’t perform that action at this time.
0 commit comments