Add Konsist test to use isFalse() instead of isEqualTo(false), and fix existing issues.

This commit is contained in:
Benoit Marty 2023-12-04 15:21:25 +01:00
parent fa590202c3
commit b2d9b41946
9 changed files with 85 additions and 73 deletions

View file

@ -37,7 +37,7 @@ class DefaultFeatureFlagServiceTest {
fun `given service without provider when set enabled feature is called then it returns false`() = runTest {
val featureFlagService = DefaultFeatureFlagService(emptySet())
val result = featureFlagService.setFeatureEnabled(FeatureFlags.LocationSharing, true)
assertThat(result).isEqualTo(false)
assertThat(result).isFalse()
}
@Test
@ -56,7 +56,7 @@ class DefaultFeatureFlagServiceTest {
featureFlagService.isFeatureEnabledFlow(FeatureFlags.LocationSharing).test {
assertThat(awaitItem()).isEqualTo(true)
featureFlagService.setFeatureEnabled(FeatureFlags.LocationSharing, false)
assertThat(awaitItem()).isEqualTo(false)
assertThat(awaitItem()).isFalse()
}
}