module Test.FeatureFlags.Cells where
import Test.FeatureFlags.Util
import Testlib.Prelude
testCells :: (HasCallStack) => APIAccess -> App ()
testCells :: HasCallStack => APIAccess -> App ()
testCells APIAccess
access =
String -> FeatureTests
mkFeatureTests String
"cells"
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 -> FeatureTests) -> FeatureTests
forall a b. a -> (a -> b) -> b
& Value -> FeatureTests -> FeatureTests
addInvalidUpdate ([Pair] -> Value
object [])
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
testPatchCells :: (HasCallStack) => App ()
testPatchCells :: HasCallStack => App ()
testPatchCells = Domain -> String -> Value -> App ()
forall domain.
(HasCallStack, MakesValue domain) =>
domain -> String -> Value -> App ()
checkPatch Domain
OwnDomain String
"cells" Value
enabled