module Test.FeatureFlags.OutlookCalIntegration where

import Test.FeatureFlags.Util
import Testlib.Prelude

testPatchOutlookCalIntegration :: (HasCallStack) => FeatureTable -> App ()
testPatchOutlookCalIntegration :: HasCallStack => FeatureTable -> App ()
testPatchOutlookCalIntegration FeatureTable
table = FeatureTable -> Domain -> String -> Value -> App ()
forall domain.
(HasCallStack, MakesValue domain) =>
FeatureTable -> domain -> String -> Value -> App ()
checkPatchWithTable FeatureTable
table Domain
OwnDomain String
"outlookCalIntegration" Value
enabled

testOutlookCalIntegration :: (HasCallStack) => FeatureTable -> APIAccess -> App ()
testOutlookCalIntegration :: HasCallStack => FeatureTable -> APIAccess -> App ()
testOutlookCalIntegration FeatureTable
table APIAccess
access =
  String -> FeatureTests
mkFeatureTests String
"outlookCalIntegration"
    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
& FeatureTable -> FeatureTests -> FeatureTests
setTable FeatureTable
table
    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