Last active
September 11, 2019 17:22
AccountPresenter tests with router.
This file contains hidden or 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