Created
November 12, 2017 18:39
-
-
Save Gerlac/82c9b4eecccc00d70ed8855e81fe24b5 to your computer and use it in GitHub Desktop.
Home presenter Test. Debounce Faiure
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
@Test | |
fun onTextTyped_showSearchSuggestions() { | |
`when`(suggestionsRepository.getSearchTermSuggestions(ANY_SEARCH_TERM)).thenReturn(Single.just(ANY_SUGGESTIONS_LIST)) | |
val presenter = createSUT() | |
presenter.onNewSearch(ANY_SEARCH_TERM) | |
verify(view).showSearchSuggestions(ANY_SUGGESTIONS_LIST) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment