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 Utils.I18n
|
||||||
|
|
||||||
|
import qualified Data.CaseInsensitive as CI
|
||||||
|
|
||||||
|
|
||||||
instance Arbitrary WorkflowPayloadLabel where
|
instance Arbitrary WorkflowPayloadLabel where
|
||||||
arbitrary = genericArbitrary
|
arbitrary = WorkflowPayloadLabel . CI.mk . pack <$> (fmap getPrintableString arbitrary `suchThat` (not . null))
|
||||||
shrink = genericShrink
|
shrink = genericShrink
|
||||||
instance CoArbitrary WorkflowPayloadLabel
|
instance CoArbitrary WorkflowPayloadLabel
|
||||||
instance Function WorkflowPayloadLabel
|
instance Function WorkflowPayloadLabel
|
||||||
|
|||||||
Reference in New Issue
Block a user