Skip to content

Commit

Permalink
Bug 1826590 - Mock download response.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarare authored and mergify[bot] committed Jun 12, 2023
1 parent bf0dce1 commit 7ec517e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -176,6 +176,8 @@ class DownloadsFeatureTest {
verify(downloadManager, never()).download(any(), anyString())

val download = DownloadState(url = "https://www.mozilla.org", sessionId = "test-tab")
doReturn("id").`when`(downloadManager).download(download)

store.dispatch(ContentAction.UpdateDownloadAction("test-tab", download))
.joinBlocking()

Expand Down

0 comments on commit 7ec517e

Please sign in to comment.