mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
test(node): Refactor MetricsViewModelTest and extract interfaces for mocking
This commit is contained in:
parent
30a32b5dea
commit
79e0592862
12 changed files with 639 additions and 421 deletions
|
|
@ -52,9 +52,9 @@ open class AlertManager {
|
|||
)
|
||||
|
||||
private val _currentAlert = MutableStateFlow<AlertData?>(null)
|
||||
val currentAlert = _currentAlert.asStateFlow()
|
||||
open val currentAlert = _currentAlert.asStateFlow()
|
||||
|
||||
fun showAlert(
|
||||
open fun showAlert(
|
||||
title: String? = null,
|
||||
titleRes: StringResource? = null,
|
||||
message: String? = null,
|
||||
|
|
@ -97,7 +97,7 @@ open class AlertManager {
|
|||
)
|
||||
}
|
||||
|
||||
fun dismissAlert() {
|
||||
open fun dismissAlert() {
|
||||
_currentAlert.value = null
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue