Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rnr committed Dec 30, 2024
1 parent da94c65 commit a32c3db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ final class SignInViewModelTests: XCTestCase {
config: ConfigMock(),
analytics: analytics,
validator: validator,
storage: CoreStorageMock(),
sourceScreen: .default
)
let user = User(id: 1, username: "username", email: "[email protected]", name: "Name", userAvatar: "")
Expand All @@ -119,7 +120,7 @@ final class SignInViewModelTests: XCTestCase {
await viewModel.ssoLogin(title: "Riyadah")

Verify(interactor, 1, .login(ssoToken: .any))
Verify(router, 1, .showMainOrWhatsNewScreen(sourceScreen: .any))
Verify(router, 1, .showMainOrWhatsNewScreen(sourceScreen: .any, authMethod: .any))

XCTAssertEqual(viewModel.errorMessage, nil)
XCTAssertEqual(viewModel.isShowProgress, true)
Expand Down

0 comments on commit a32c3db

Please sign in to comment.