|
|
|
@ -19,7 +19,6 @@ import mozilla.components.browser.state.state.SearchState
|
|
|
|
|
import mozilla.components.browser.state.store.BrowserStore
|
|
|
|
|
import org.junit.After
|
|
|
|
|
import org.junit.Assert.assertEquals
|
|
|
|
|
import org.junit.Assert.assertFalse
|
|
|
|
|
import org.junit.Before
|
|
|
|
|
import org.junit.Test
|
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
@ -44,12 +43,6 @@ class ShortcutsSuggestionProviderTest {
|
|
|
|
|
unmockkStatic(AppCompatResources::class)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
fun `should clear is always false`() {
|
|
|
|
|
val provider = ShortcutsSuggestionProvider(mockk(), mockk(), mockk(), mockk())
|
|
|
|
|
assertFalse(provider.shouldClearSuggestions)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
fun `returns suggestions from search engine provider`() = runBlockingTest {
|
|
|
|
|
val engineOne = mockk<SearchEngine> {
|
|
|
|
|