Skip to content

Commit

Permalink
Adds unit tests for didSelectMovieAt
Browse files Browse the repository at this point in the history
  • Loading branch information
DeluxeAlonso committed Sep 14, 2024
1 parent 303a78d commit 035a95e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,11 @@ final class SearchOptionsDataSourceTests: XCTestCase {
XCTAssertNil(title)
}

func testDidSelectMovie() {
// Act
dataSource.recentlyVisitedMoviesTableViewCell(RecentlyVisitedMoviesTableViewCell(), didSelectMovieAt: IndexPath(row: 0, section: 0))
// Assert
XCTAssertEqual(viewModel.getRecentlyVisitedMovieSelectionCallCount, 1)
}

}

0 comments on commit 035a95e

Please sign in to comment.