fix(ci): align onboarding assertion with generated enum
This commit is contained in:
1 parent
1a693848f2
commit
582c0dc3d4
1 file changed
+1
-1
@@ -295,7 +295,7 @@ func TestUserJourney(t *testing.T) {
|
||||
require.False(t, onb.Required)
|
||||
|
||||
require.NotNil(t, onb.Choice)
|
||||
require.Equal(t, gen.Male, *onb.Choice.Gender)
|
||||
require.Equal(t, gen.OnboardingChoiceGenderMale, *onb.Choice.Gender)
|
||||
require.Equal(t, gen.N1319, *onb.Choice.AgeGroup)
|
||||
require.Greater(t, *onb.Choice.AgeGroupYear, 1900, "client cannot forge the selection year")
|
||||
_, err = pool.Exec(ctx, `UPDATE user_profiles_rec SET onboarding = jsonb_set(onboarding,
|
||||
|
||||
Reference in new issue
Block a user