module Test.FeatureFlags.SndFactorPasswordChallenge where

import Test.FeatureFlags.Util
import Testlib.Prelude

testPatchSndFactorPasswordChallenge :: (HasCallStack) => App ()
testPatchSndFactorPasswordChallenge :: HasCallStack => App ()
testPatchSndFactorPasswordChallenge =
  Domain -> String -> Value -> App ()
forall domain.
(HasCallStack, MakesValue domain) =>
domain -> String -> Value -> App ()
checkPatch Domain
OwnDomain String
"sndFactorPasswordChallenge" Value
enabled

testSndFactorPasswordChallenge :: (HasCallStack) => APIAccess -> App ()
testSndFactorPasswordChallenge :: HasCallStack => APIAccess -> App ()
testSndFactorPasswordChallenge APIAccess
access =
  do
    String -> FeatureTests
mkFeatureTests String
"sndFactorPasswordChallenge"
    FeatureTests -> (FeatureTests -> FeatureTests) -> FeatureTests
forall a b. a -> (a -> b) -> b
& Value -> FeatureTests -> FeatureTests
addUpdate Value
enabled
    FeatureTests -> (FeatureTests -> FeatureTests) -> FeatureTests
forall a b. a -> (a -> b) -> b
& Value -> FeatureTests -> FeatureTests
addUpdate Value
disabled
    FeatureTests -> (FeatureTests -> App ()) -> App ()
forall a b. a -> (a -> b) -> b
& Domain -> APIAccess -> FeatureTests -> App ()
forall domain.
(HasCallStack, MakesValue domain) =>
domain -> APIAccess -> FeatureTests -> App ()
runFeatureTests Domain
OwnDomain APIAccess
access