Skip to content

Commit

Permalink
✅ HomeTest 추가된 메소드 임시 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
anyukyung committed Dec 14, 2023
1 parent e1cab82 commit 271a3b8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import CoreLocation
@testable import Layover

final class MockLocationFetcher: LocationFetcher {

var location: CLLocation?
var locationFetcherDelegate: Layover.LocationFetcherDelegate?
var desiredAccuracy: CLLocationAccuracy = kCLLocationAccuracyBest
var authorizationStatus: CLAuthorizationStatus = .authorizedWhenInUse

func requestLocation() { }

Expand Down
10 changes: 9 additions & 1 deletion iOS/Layover/LayoverTests/Scenes/Home/HomeInteractorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ final class HomeInteractorTests: XCTestCase {

// MARK: - Test doubles

final class HomePresentationLogicSpy: HomePresentationLogic { // 호출 테스트를 위한 Spy
final class HomePresentationLogicSpy: HomePresentationLogic {
func presentUploadScene() {

}

func presentSetting() {

}
// 호출 테스트를 위한 Spy
var presentPostsCalled = false
var presentPostsReceivedResponse: Models.FetchPosts.Response!
var presentPlaybackSceneCalled = false
Expand Down
10 changes: 10 additions & 0 deletions iOS/Layover/LayoverTests/Scenes/Home/HomePresenterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ final class HomePresenterTests: XCTestCase {
// MARK: - Test doubles

final class HomeDisplayLogicSpy: HomeDisplayLogic {

var displayPostsCalled = false
var displayPostsReceivedViewModel: Models.FetchPosts.ViewModel!
var displayThumbnailImageCalled = false
Expand All @@ -58,6 +59,15 @@ final class HomePresenterTests: XCTestCase {
func routeToTagPlayList() {
routeToTagPlayListCalled = true
}

func routeToVideoPicker() {

}

func openSetting() {

}

}

// MARK: - Tests
Expand Down

0 comments on commit 271a3b8

Please sign in to comment.