mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
1abb1dee69
https://github.com/hasura/graphql-engine-mono/pull/1740 GitOrigin-RevId: e807952058243a97f67cd9969fa434933a08652f
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
|