Last active
September 11, 2019 17:22
-
-
Save dougritter/793764b8e72070a1c1f995b29eec0e9b to your computer and use it in GitHub Desktop.
AccountPresenter tests with router.
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
class AccountPresenterTests: XCTestCase { | |
func test_given_and_account_name_when_next_is_pressed_then_should_navigate_to_home() { | |
let routerMock = RouterMock() | |
let presenter = AccountPresenterImplementation(router: routerMock) | |
presenter.nextPressed(accountName: "talkdesk") | |
XCTAssertEqual(routerMock.showHomeCalled, true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment