-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
viewModel.login("", "") | ||
coVerify(exactly = 0) { interactor.login(any(), any()) } | ||
|
@@ -165,7 +166,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
viewModel.login("[email protected]", "") | ||
coVerify(exactly = 0) { interactor.login(any(), any()) } | ||
|
@@ -202,7 +204,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
viewModel.login("[email protected]", "") | ||
|
||
|
@@ -238,7 +241,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
viewModel.login("[email protected]", "ed") | ||
|
||
|
@@ -278,7 +282,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
coEvery { interactor.login("[email protected]", "edx") } returns Unit | ||
viewModel.login("[email protected]", "edx") | ||
|
@@ -318,7 +323,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
coEvery { interactor.login("[email protected]", "edx") } throws UnknownHostException() | ||
viewModel.login("[email protected]", "edx") | ||
|
@@ -360,7 +366,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
coEvery { interactor.login("[email protected]", "edx") } throws EdxError.InvalidGrantException() | ||
viewModel.login("[email protected]", "edx") | ||
|
@@ -402,7 +409,8 @@ class SignInViewModelTest { | |
courseId = "", | ||
infoType = "", | ||
calendarInteractor = calendarInteractor, | ||
calendarPreferences = calendarPreferences | ||
calendarPreferences = calendarPreferences, | ||
authCode = "", | ||
) | ||
coEvery { interactor.login("[email protected]", "edx") } throws IllegalStateException() | ||
viewModel.login("[email protected]", "edx") | ||
|