test(node): Refactor MetricsViewModelTest and extract interfaces for mocking

This commit is contained in:
James Rich 2026-03-18 20:03:52 -05:00
parent 30a32b5dea
commit 79e0592862
12 changed files with 639 additions and 421 deletions

View file

@ -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
}
}