test(user): add new field to fix build

This commit is contained in:
Steffen Jost 2022-08-30 18:25:52 +02:00
parent 8417eb57c9
commit 188f101eed
2 changed files with 5 additions and 1 deletions

View File

@ -130,8 +130,10 @@ instance Arbitrary User where
userShowSex <- arbitrary
userMobile <- fmap pack . assertM' (not . null) <$> listOf (elements $ [' ', '+', '-', '/', '_'] ++ ['0'..'9'])
userTelephone <- fmap pack . assertM' (not . null) <$> listOf (elements $ [' ', '+', '-', '/', '_'] ++ ['0'..'9'])
userCompanyPersonalNumber <- fmap pack . assertM' (not . null) <$> listOf (elements ['0'..'9'])
userCompanyPersonalNumber <- fmap pack . assertM' (not . null) <$> listOf (elements ['0'..'9'])
userCompanyDepartment <- arbitrary
userPostAddress <- arbitrary -- TODO: not a good address
userPrefersPostal <- arbitrary
userExamOfficeGetSynced <- arbitrary
userExamOfficeGetLabels <- arbitrary

View File

@ -49,3 +49,5 @@ fakeUser adjUser = adjUser User{..}
userTelephone = Nothing
userCompanyPersonalNumber = Nothing
userCompanyDepartment = Nothing
userPostAddress = Nothing
userPrefersPostal = False