Skip to content

Commit

Permalink
PM-15831 - 🍒 Enable remote configuration of `enable-authenticator-syn…
Browse files Browse the repository at this point in the history
…c-android` feature flag (#4442)
  • Loading branch information
phil-livefront authored Dec 9, 2024
1 parent b32c593 commit 53b389b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sealed class FlagKey<out T : Any> {
data object AuthenticatorSync : FlagKey<Boolean>() {
override val keyName: String = "enable-authenticator-sync-android"
override val defaultValue: Boolean = false
override val isRemotelyConfigured: Boolean = false
override val isRemotelyConfigured: Boolean = true
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.x8bit.bitwarden.data.platform.manager

import com.x8bit.bitwarden.data.platform.manager.model.FlagKey
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test

class FlagKeyTest {
Expand All @@ -11,6 +12,11 @@ class FlagKeyTest {
assertFalse(FlagKey.AuthenticatorSync.defaultValue)
}

@Test
fun `AuthenticatorSync is remotely configured value should be true`() {
assertTrue(FlagKey.AuthenticatorSync.isRemotelyConfigured)
}

@Test
fun `EmailVerification default value should be false`() {
assertFalse(FlagKey.EmailVerification.defaultValue)
Expand Down

0 comments on commit 53b389b

Please sign in to comment.