Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rkareko committed Oct 18, 2024
1 parent 4e661f6 commit 1757cac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class RegisterViewModelTest : RobolectricTest() {
mutableStateOf(RegisterUiState(registerId = registerId))
// Search with empty string should paginate the data
registerViewModel.onEvent(RegisterEvent.SearchRegister(SearchQuery.emptyText))
verify { registerViewModel.paginateRegisterData(any(), any()) }
verify { registerViewModel.retrieveRegisterUiState(any(), any(), any(), any()) }

// Search for the word 'Khan' should call the filterRegisterData function
registerViewModel.onEvent(RegisterEvent.SearchRegister(SearchQuery("Khan")))
Expand Down

0 comments on commit 1757cac

Please sign in to comment.