Skip to content

Commit 98f3f51

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent b075eb1 commit 98f3f51

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

Tests/ComposableArchitectureTests/TestStoreTests.swift

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -433,24 +433,24 @@ final class TestStoreTests: BaseTCATestCase {
433433
}
434434

435435
#if DEBUG
436-
func testAssert_ExhaustiveTestStore() async {
437-
let store = TestStore(initialState: 0) {
438-
EmptyReducer<Int, Void>()
439-
}
440-
441-
XCTExpectFailure {
442-
store.assert {
443-
$0 = 0
436+
func testAssert_ExhaustiveTestStore() async {
437+
let store = TestStore(initialState: 0) {
438+
EmptyReducer<Int, Void>()
444439
}
445-
} issueMatcher: {
446-
$0.compactDescription == """
447-
Expected state to change, but no change occurred.
448440

449-
The trailing closure made no observable modifications to state. If no change to state is \
450-
expected, omit the trailing closure.
451-
"""
441+
XCTExpectFailure {
442+
store.assert {
443+
$0 = 0
444+
}
445+
} issueMatcher: {
446+
$0.compactDescription == """
447+
Expected state to change, but no change occurred.
448+
449+
The trailing closure made no observable modifications to state. If no change to state is \
450+
expected, omit the trailing closure.
451+
"""
452+
}
452453
}
453-
}
454454
#endif
455455

456456
func testAssert_NonExhaustiveTestStore() async {
@@ -465,27 +465,27 @@ final class TestStoreTests: BaseTCATestCase {
465465
}
466466

467467
#if DEBUG
468-
func testAssert_NonExhaustiveTestStore_Failure() async {
469-
let store = TestStore(initialState: 0) {
470-
EmptyReducer<Int, Void>()
471-
}
472-
store.exhaustivity = .off
473-
474-
XCTExpectFailure {
475-
store.assert {
476-
$0 = 1
468+
func testAssert_NonExhaustiveTestStore_Failure() async {
469+
let store = TestStore(initialState: 0) {
470+
EmptyReducer<Int, Void>()
477471
}
478-
} issueMatcher: {
479-
$0.compactDescription == """
480-
A state change does not match expectation: …
472+
store.exhaustivity = .off
481473

482-
− 1
483-
+ 0
474+
XCTExpectFailure {
475+
store.assert {
476+
$0 = 1
477+
}
478+
} issueMatcher: {
479+
$0.compactDescription == """
480+
A state change does not match expectation: …
481+
482+
− 1
483+
+ 0
484484
485-
(Expected: −, Actual: +)
486-
"""
485+
(Expected: −, Actual: +)
486+
"""
487+
}
487488
}
488-
}
489489
#endif
490490
}
491491

0 commit comments

Comments
 (0)