Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Oct 18, 2023
1 parent f1ca1a6 commit 84a6d07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/CommonAppleKit/ListViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
import Foundation

open class ListViewCell: CACollectionViewCell {
#if canImport(UIKit)
open var representedObject: Any?
#endif
}
4 changes: 3 additions & 1 deletion Tests/CommonAppleKitTests/CommonAppleKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ private final class ControllerA: CAViewController { }

private final class ControllerB: CAViewController { }

private final class CellA: ListViewCell { }

final class CommonAppleKitTests: XCTestCase {
func testButton() {
let button = CAButton()
Expand Down Expand Up @@ -45,7 +47,7 @@ final class CommonAppleKitTests: XCTestCase {
}

func testListView() {
let collectionView = ListView<CACollectionViewCell>(frame: .zero, itemSize: .init(width: 200, height: 100), cellId: "id")
let collectionView = ListView<CellA>(frame: .zero, itemSize: .init(width: 200, height: 100), cellId: "id")
collectionView.content = []
}
}
Expand Down

0 comments on commit 84a6d07

Please sign in to comment.