We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e436409 commit 78eb693Copy full SHA for 78eb693
primer-service/test/Tests/OpenAPI.hs
@@ -7,6 +7,7 @@ import Hedgehog.Gen qualified as G
7
import Hedgehog.Range qualified as R
8
import Primer.Core (ID (ID))
9
import Primer.Database (safeMkSessionName)
10
+import Primer.Gen.Core.Raw (evalExprGen, genName)
11
import Primer.OpenAPI ()
12
import Tasty (Property, property)
13
@@ -25,3 +26,6 @@ tasty_SessionName = testToJSON $ safeMkSessionName <$> G.text (R.linear 1 100) G
25
26
-- NB: don't want to use genID, as that is just "next free ID"
27
tasty_ID :: Property
28
tasty_ID = testToJSON $ ID <$> G.int (R.linear 0 1000)
29
+
30
+tasty_Name :: Property
31
+tasty_Name = testToJSON $ evalExprGen 0 genName
0 commit comments