Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FetchRecipeDetailUseCaseTests를 생성하였습니다 #19

Merged
merged 13 commits into from
Jul 23, 2024
Prev Previous commit
Next Next commit
Fix: self.delegate.fetchedRecipeResult에서 self 제거
  • Loading branch information
GeonH0 committed Jul 22, 2024
commit 7e579b806c43788a36b32723a6838cc624100e0b
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ extension RecipeDetailInteractorTests {
XCTAssertEqual(self.fetchRecipeDetailUsecase.executeCallCount, 1)
XCTAssertEqual(self.delegate.fetchedCallCount, 1)

if case .success(let fetchedRecipe)? = self.delegate.fetchedRecipeResult {
if case .success(let fetchedRecipe)? = delegate.fetchedRecipeResult {
XCTAssertEqual(fetchedRecipe.id, recipe.id)
} else {
XCTFail("Expected success but got failure or nil")
@@ -100,7 +100,7 @@ extension RecipeDetailInteractorTests {
XCTAssertEqual(self.fetchRecipeDetailUsecase.executeCallCount, 1)
XCTAssertEqual(self.delegate.fetchedCallCount, 1)

if case .failure(let fetchedError as NSError) = self.delegate.fetchedRecipeResult {
if case .failure(let fetchedError as NSError) = delegate.fetchedRecipeResult {
XCTAssertEqual(fetchedError.domain, error.domain)
XCTAssertEqual(fetchedError.code, error.code)
} else {