mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
Bug 1840791 - Remove unused GleanTestRule.
This commit is contained in:
parent
479156f439
commit
7d246d2134
@ -8,25 +8,16 @@ import com.google.android.material.tabs.TabLayout
|
|||||||
import io.mockk.every
|
import io.mockk.every
|
||||||
import io.mockk.mockk
|
import io.mockk.mockk
|
||||||
import io.mockk.verify
|
import io.mockk.verify
|
||||||
import mozilla.components.service.glean.testing.GleanTestRule
|
|
||||||
import mozilla.components.support.test.libstate.ext.waitUntilIdle
|
import mozilla.components.support.test.libstate.ext.waitUntilIdle
|
||||||
import mozilla.components.support.test.middleware.CaptureActionsMiddleware
|
import mozilla.components.support.test.middleware.CaptureActionsMiddleware
|
||||||
import mozilla.components.support.test.robolectric.testContext
|
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Rule
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
|
||||||
import org.mozilla.fenix.helpers.FenixRobolectricTestRunner
|
|
||||||
|
|
||||||
@RunWith(FenixRobolectricTestRunner::class) // for gleanTestRule
|
|
||||||
class TabLayoutObserverTest {
|
class TabLayoutObserverTest {
|
||||||
private val interactor = mockk<TabsTrayInteractor>(relaxed = true)
|
private val interactor = mockk<TabsTrayInteractor>(relaxed = true)
|
||||||
private lateinit var store: TabsTrayStore
|
private lateinit var store: TabsTrayStore
|
||||||
private val middleware = CaptureActionsMiddleware<TabsTrayState, TabsTrayAction>()
|
private val middleware = CaptureActionsMiddleware<TabsTrayState, TabsTrayAction>()
|
||||||
|
|
||||||
@get:Rule
|
|
||||||
val gleanTestRule = GleanTestRule(testContext)
|
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
fun setup() {
|
fun setup() {
|
||||||
store = TabsTrayStore(middlewares = listOf(middleware))
|
store = TabsTrayStore(middlewares = listOf(middleware))
|
||||||
|
Loading…
Reference in New Issue
Block a user