Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
adding tests for the screen will be in another PR
  • Loading branch information
mikescamell committed Sep 12, 2024
1 parent 793f55e commit 813dac5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,17 @@ class FakeShowOnAppLaunchOptionDataStore : ShowOnAppLaunchOptionDataStore {

private var currentOptionStateFlow = MutableStateFlow<ShowOnAppLaunchOption?>(null)

private var currentSpecificPageUrl = MutableStateFlow("duckduckgo.com")

override val optionFlow: Flow<ShowOnAppLaunchOption> = currentOptionStateFlow.asStateFlow().filterNotNull()

override val specificPageUrlFlow: Flow<String> = currentSpecificPageUrl.asStateFlow()

override suspend fun setShowOnAppLaunchOption(showOnAppLaunchOption: ShowOnAppLaunchOption) {
currentOptionStateFlow.value = showOnAppLaunchOption
}

override suspend fun setSpecificPageUrl(url: String) {
currentSpecificPageUrl.value = url
}
}

0 comments on commit 813dac5

Please sign in to comment.