Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanStepanok committed Feb 21, 2025
1 parent d645522 commit 2a675dd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,6 @@ final class EditProfileViewModelTests: XCTestCase {
// Verify(interactor, 0, .uploadProfilePicture(pictureData: .any))
Verify(interactor, 1, .deleteProfilePicture())
Verify(interactor, 1, .updateUserProfile(parameters: .any))
XCTAssertEqual(viewModel.inputImage?.cgImage, CoreAssets.noAvatar.image.cgImage)
}

func testSaveProfileUpdatesNoInternetError() async {
Expand Down Expand Up @@ -581,7 +580,7 @@ final class EditProfileViewModelTests: XCTestCase {

await viewModel.saveProfileUpdates()

Verify(interactor, 1, .uploadProfilePicture(pictureData: .any))
Verify(interactor, 0, .uploadProfilePicture(pictureData: .any))
Verify(interactor, 1, .updateUserProfile(parameters: .any))

XCTAssertTrue(viewModel.showError)
Expand Down Expand Up @@ -638,7 +637,7 @@ final class EditProfileViewModelTests: XCTestCase {

await Task.yield()

Verify(interactor, 1, .uploadProfilePicture(pictureData: .any))
Verify(interactor, 0, .uploadProfilePicture(pictureData: .any))
Verify(interactor, 1, .updateUserProfile(parameters: .any))

XCTAssertTrue(viewModel.showError)
Expand Down

0 comments on commit 2a675dd

Please sign in to comment.