1
0
Fork 0

For #11763: Fixes unit tests

master
ValentinTimisica 2020-06-25 10:18:57 +03:00 committed by Emily Kager
parent e39d5b6de7
commit 4a93a41bb2
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class DefaultSessionControlControllerTest {
private val openPrivacyNotice: () -> Unit = mockk(relaxed = true)
private val registerCollectionStorageObserver: () -> Unit = mockk(relaxed = true)
private val showTabTray: () -> Unit = mockk(relaxed = true)
private val showDeleteCollectionPrompt: (tabCollection: TabCollection) -> Unit =
private val showDeleteCollectionPrompt: (tabCollection: TabCollection, title: String?, message: String) -> Unit =
mockk(relaxed = true)
private val metrics: MetricController = mockk(relaxed = true)
private val state: HomeFragmentState = mockk(relaxed = true)
@ -137,7 +137,7 @@ class DefaultSessionControlControllerTest {
fun handleDeleteCollectionTapped() {
val collection: TabCollection = mockk(relaxed = true)
controller.handleDeleteCollectionTapped(collection)
verify { showDeleteCollectionPrompt(collection) }
verify { showDeleteCollectionPrompt(collection, null, any()) }
}
@Test