File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ class DataSourceTests: XCTestCase {
9292 XCTAssertFalse ( dataSource. tableView ( tableView, shouldHighlightRowAt: IndexPath ( row: 0 , section: 0 ) ) )
9393
9494 dataSource. sections = [
95- Section ( rows: [ Row ( text: " Cupcakes " , selection: { } ) ] )
95+ Section ( rows: [ Row ( text: " Cupcakes " , selection: { ( row ) in } ) ] )
9696 ]
9797 XCTAssertTrue ( dataSource. tableView ( tableView, shouldHighlightRowAt: IndexPath ( row: 0 , section: 0 ) ) )
9898 }
9999
100100 func testSelection( ) {
101101 let expectation = self . expectation ( description: " Selected " )
102- let selection = {
102+ let selection : Selection = { ( row ) in
103103 expectation. fulfill ( )
104104 }
105105
@@ -112,7 +112,7 @@ class DataSourceTests: XCTestCase {
112112
113113 func testAccessorySelection( ) {
114114 let expectation = self . expectation ( description: " Accessory Selected " )
115- let selection = {
115+ let selection : Selection = { ( row ) in
116116 expectation. fulfill ( )
117117 }
118118
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Static
44class RowTests : XCTestCase {
55
66 func testInit( ) {
7- let selection : Selection = { }
7+ let selection : Selection = { ( row ) in }
88 let context : Row . Context = [
99 " Hello " : " world "
1010 ]
@@ -36,7 +36,7 @@ class RowTests: XCTestCase {
3636 }
3737
3838 func testInitWithSelectableAccessoryType( ) {
39- let selection : Selection = { }
39+ let selection : Selection = { ( row ) in }
4040 let accessory : Row . Accessory = . detailButton( selection)
4141
4242 let row = Row ( accessory: accessory)
You can’t perform that action at this time.
0 commit comments