Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
malmstein committed Dec 16, 2024
1 parent 9b4a370 commit 10d8276
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5845,6 +5845,7 @@ class BrowserTabViewModelTest {
@Test
fun whenTabSwitcherPressedAndUserOnSiteThenPixelIsSent() = runTest {
givenTabManagerData()
setBrowserShowing(true)
val domain = "https://www.example.com"
givenCurrentSite(domain)

Expand All @@ -5866,6 +5867,7 @@ class BrowserTabViewModelTest {
@Test
fun whenTabSwitcherPressedAndUserOnNewTabThenPixelIsSent() = runTest {
givenTabManagerData()
setBrowserShowing(true)
whenever(mockDuckDuckGoUrlDetector.isDuckDuckGoUrl(any())).thenReturn(true)
val domain = "https://duckduckgo.com/?q=test&atb=v395-1-wb&ia=web"
givenCurrentSite(domain)
Expand Down

0 comments on commit 10d8276

Please sign in to comment.