-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: AllCoursesViewModel, PrimaryCoursesViewModel, DatesAndCalendarV…
…iewModel, CalendarManager (#535)
- Loading branch information
1 parent
af2ba21
commit f7eeae8
Showing
21 changed files
with
9,765 additions
and
2,247 deletions.
There are no files selected for viewing
509 changes: 458 additions & 51 deletions
509
Authorization/AuthorizationTests/AuthorizationMock.generated.swift
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -109,11 +109,11 @@ final class SignInViewModelTests: XCTestCase { | |
) | ||
let user = User(id: 1, username: "username", email: "[email protected]", name: "Name", userAvatar: "") | ||
|
||
Given(interactor, .ssoLogin(title: .any, willReturn: user)) | ||
Given(interactor, .login(ssoToken: .any, willReturn: user)) | ||
|
||
await viewModel.ssoLogin(title: "Riyadah") | ||
|
||
Verify(interactor, 1, .ssoLogin(title: .any)) | ||
Verify(interactor, 1, .login(ssoToken: .any)) | ||
Verify(router, 1, .showMainOrWhatsNewScreen(sourceScreen: .any)) | ||
|
||
XCTAssertEqual(viewModel.errorMessage, nil) | ||
|
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.