test: Add test case for CPA field with empty attributes

This commit is contained in:
Julien Tant (aider)
2025-02-25 10:50:29 -07:00
parent 7ab4455f9f
commit aee06af59c
@@ -181,6 +181,20 @@ func TestCPAFieldToPropertyField(t *testing.T) {
},
},
},
{
name: "convert CPA field with empty attributes",
cpaField: &CPAField{
PropertyField: PropertyField{
ID: NewId(),
GroupID: CustomProfileAttributesPropertyGroupName,
Name: "Empty Field",
Type: PropertyFieldTypeText,
CreateAt: GetMillis(),
UpdateAt: GetMillis(),
},
Attrs: CPAAttrs{},
},
},
}
for _, tt := range tests {