Fixed failing tests
This commit is contained in:
Родитель
793a162867
Коммит
73437c3404
|
@ -52,7 +52,7 @@ private class FeedModulePresenterMock: FeedModuleInteractorOutput {
|
|||
|
||||
func didStartFetching() { }
|
||||
|
||||
func didFinishFetching() { }
|
||||
func didFinishFetching(with error: Error?) { }
|
||||
|
||||
func didPostAction(post: PostHandle, action: PostSocialAction, error: Error?) {
|
||||
didPostAction = (post, action, error)
|
||||
|
|
|
@ -26,7 +26,7 @@ private class FeedModulePresenterMock: FeedModuleInteractorOutput {
|
|||
startedFetching = true
|
||||
}
|
||||
|
||||
func didFinishFetching() {
|
||||
func didFinishFetching(with error: Error?) {
|
||||
finishedFetching = true
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ class FeedModulePresenter_Tests: XCTestCase {
|
|||
view.setRefreshing_state_ReceivedState = true
|
||||
|
||||
// when
|
||||
sut.didFinishFetching()
|
||||
sut.didFinishFetching(with: nil)
|
||||
|
||||
// then
|
||||
XCTAssertTrue(view.setRefreshing_state_ReceivedState == false)
|
||||
|
|
Загрузка…
Ссылка в новой задаче