@@ -11,15 +11,17 @@ class SharedStateTests: XCTestCase {
1111 reducer: sharedStateReducer,
1212 environment: ( )
1313 )
14-
14+
1515 store. assert (
1616 . send( . selectTab( . profile) ) {
1717 $0. currentTab = . profile
18- $0. profile = . init( currentTab: . profile, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
18+ $0. profile = . init(
19+ currentTab: . profile, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
1920 } ,
2021 . send( . profile( . resetCounterButtonTapped) ) {
2122 $0. currentTab = . counter
22- $0. profile = . init( currentTab: . counter, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
23+ $0. profile = . init(
24+ currentTab: . counter, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
2325 } )
2426 }
2527
@@ -33,11 +35,13 @@ class SharedStateTests: XCTestCase {
3335 store. assert (
3436 . send( . selectTab( . profile) ) {
3537 $0. currentTab = . profile
36- $0. profile = . init( currentTab: . profile, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
38+ $0. profile = . init(
39+ currentTab: . profile, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
3740 } ,
3841 . send( . selectTab( . counter) ) {
3942 $0. currentTab = . counter
40- $0. profile = . init( currentTab: . counter, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
43+ $0. profile = . init(
44+ currentTab: . counter, count: 0 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 )
4145 } )
4246 }
4347
@@ -67,7 +71,8 @@ class SharedStateTests: XCTestCase {
6771
6872 func testIsPrimeWhenPrime( ) {
6973 let store = TestStore (
70- initialState: SharedState . CounterState ( alert: nil , count: 3 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 ) ,
74+ initialState: SharedState . CounterState (
75+ alert: nil , count: 3 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 ) ,
7176 reducer: sharedStateCounterReducer,
7277 environment: ( )
7378 )
@@ -86,7 +91,8 @@ class SharedStateTests: XCTestCase {
8691
8792 func testIsPrimeWhenNotPrime( ) {
8893 let store = TestStore (
89- initialState: SharedState . CounterState ( alert: nil , count: 6 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 ) ,
94+ initialState: SharedState . CounterState (
95+ alert: nil , count: 6 , maxCount: 0 , minCount: 0 , numberOfCounts: 0 ) ,
9096 reducer: sharedStateCounterReducer,
9197 environment: ( )
9298 )
0 commit comments