Skip to content

Commit

Permalink
Add the siteMonitorLinkHandler to the list of deepLinkHandlers and up…
Browse files Browse the repository at this point in the history
…date unit test
  • Loading branch information
zwarm committed Jan 29, 2024
1 parent 82e3f7c commit 64b5579
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class DeepLinkHandlers
mediaLinkHandler: MediaLinkHandler,
domainManagementLinkHandler: DomainManagementLinkHandler,
qrCodeMediaLinkHandler: QRCodeMediaLinkHandler,
siteMonitorLinkHandler: SiteMonitorLinkHandler
) {
private val handlers = listOf(
editorLinkHandler,
Expand All @@ -33,6 +34,7 @@ class DeepLinkHandlers
mediaLinkHandler,
domainManagementLinkHandler,
qrCodeMediaLinkHandler,
siteMonitorLinkHandler
)

private val _toast by lazy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class DeepLinkHandlersTest : BaseUnitTest() {
@Mock
lateinit var qrCodeMediaLinkHandler: QRCodeMediaLinkHandler

@Mock
lateinit var siteMonitorLinkHandler: SiteMonitorLinkHandler

@Mock
lateinit var uri: UriWrapper
private lateinit var deepLinkHandlers: DeepLinkHandlers
Expand All @@ -67,6 +70,7 @@ class DeepLinkHandlersTest : BaseUnitTest() {
mediaLinkHandler,
domainManagementLinkHandler,
qrCodeMediaLinkHandler,
siteMonitorLinkHandler
)
initDeepLinkHandlers()
}
Expand All @@ -84,6 +88,7 @@ class DeepLinkHandlersTest : BaseUnitTest() {
mediaLinkHandler,
domainManagementLinkHandler,
qrCodeMediaLinkHandler,
siteMonitorLinkHandler
)
}

Expand Down

0 comments on commit 64b5579

Please sign in to comment.