Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikescamell committed Sep 12, 2024
1 parent c240771 commit 9e45cbc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.duckduckgo.app.browser.BrowserViewModel.Command
import com.duckduckgo.app.browser.defaultbrowsing.DefaultBrowserDetector
import com.duckduckgo.app.browser.omnibar.OmnibarEntryConverter
import com.duckduckgo.app.fire.DataClearer
import com.duckduckgo.app.generalsettings.showonapplaunch.store.ShowOnAppLaunchOptionDataStore
import com.duckduckgo.app.global.rating.AppEnjoymentPromptEmitter
import com.duckduckgo.app.global.rating.AppEnjoymentPromptOptions
import com.duckduckgo.app.global.rating.AppEnjoymentUserEventRecorder
Expand Down Expand Up @@ -81,6 +82,9 @@ class BrowserViewModelTest {
@Mock
private lateinit var mockDefaultBrowserDetector: DefaultBrowserDetector

@Mock
private lateinit var showOnAppLaunchOptionDataStore: ShowOnAppLaunchOptionDataStore

private lateinit var testee: BrowserViewModel

private val skipUrlConversionOnNewTabFeature = FakeFeatureToggleFactory.create(SkipUrlConversionOnNewTabFeature::class.java)
Expand All @@ -103,6 +107,7 @@ class BrowserViewModelTest {
dispatchers = coroutinesTestRule.testDispatcherProvider,
pixel = mockPixel,
skipUrlConversionOnNewTabFeature = skipUrlConversionOnNewTabFeature,
showOnAppLaunchOptionDataStore = showOnAppLaunchOptionDataStore,
)

testee.command.observeForever(mockCommandObserver)
Expand Down

0 comments on commit 9e45cbc

Please sign in to comment.