mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-19 05:21:47 +03:00
15 lines
442 B
Haskell
15 lines
442 B
Haskell
|
module Hasura.SessionSpec (spec) where
|
||
|
|
||
|
import Hasura.Generator ()
|
||
|
import Hasura.Prelude
|
||
|
import Hasura.Server.Utils
|
||
|
import Hasura.Session
|
||
|
|
||
|
import Test.Hspec
|
||
|
import Test.Hspec.QuickCheck
|
||
|
|
||
|
spec :: Spec
|
||
|
spec = describe "SessionVariable" $ do
|
||
|
prop "Arbitrary instance generates valid session variables" $ \v ->
|
||
|
sessionVariableToText v `shouldSatisfy` isSessionVariable
|