fix(tests): generate sensible WorkflowPayloadLabels
This commit is contained in:
parent
f9d933bdac
commit
8a888d3945
@ -20,9 +20,11 @@ import Control.Lens.Extras (is)
|
||||
|
||||
import Utils.I18n
|
||||
|
||||
import qualified Data.CaseInsensitive as CI
|
||||
|
||||
|
||||
instance Arbitrary WorkflowPayloadLabel where
|
||||
arbitrary = genericArbitrary
|
||||
arbitrary = WorkflowPayloadLabel . CI.mk . pack <$> (fmap getPrintableString arbitrary `suchThat` (not . null))
|
||||
shrink = genericShrink
|
||||
instance CoArbitrary WorkflowPayloadLabel
|
||||
instance Function WorkflowPayloadLabel
|
||||
|
||||
Loading…
Reference in New Issue
Block a user