Skip to content

Commit b022ef8

Browse files
committed
Fix tests
1 parent a1b2bd5 commit b022ef8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/test/java/com/duckduckgo/app/tabs/ui/TabSwitcherViewModelTest.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import com.duckduckgo.app.tabs.model.TabSwitcherData.LayoutType.GRID
3737
import com.duckduckgo.app.tabs.model.TabSwitcherData.LayoutType.LIST
3838
import com.duckduckgo.app.tabs.model.TabSwitcherData.UserState.EXISTING
3939
import com.duckduckgo.app.tabs.model.TabSwitcherData.UserState.NEW
40+
import com.duckduckgo.app.tabs.store.TabSwitcherPrefsDataStore
4041
import com.duckduckgo.app.tabs.ui.TabSwitcherViewModel.Command
4142
import com.duckduckgo.app.trackerdetection.api.WebTrackersBlockedAppRepository
4243
import com.duckduckgo.common.test.CoroutineTestRule
@@ -102,6 +103,9 @@ class TabSwitcherViewModelTest {
102103
@Mock
103104
private lateinit var mockWebTrackersBlockedAppRepository: WebTrackersBlockedAppRepository
104105

106+
@Mock
107+
private lateinit var mockTabSwitcherPrefsDataStore: TabSwitcherPrefsDataStore
108+
105109
private val swipingTabsFeature = FakeFeatureToggleFactory.create(SwipingTabsFeature::class.java)
106110
private val tabSwitcherAnimationFeature = FakeFeatureToggleFactory.create(TabSwitcherAnimationFeature::class.java)
107111

@@ -146,6 +150,7 @@ class TabSwitcherViewModelTest {
146150
duckChatMock,
147151
tabSwitcherAnimationFeature,
148152
mockWebTrackersBlockedAppRepository,
153+
mockTabSwitcherPrefsDataStore,
149154
)
150155
testee.command.observeForever(mockCommandObserver)
151156
}

0 commit comments

Comments
 (0)