refactor: Rename NewCustomProfileAttributeSelectOption to NewCustomProfileAttributesSelectOption

This commit is contained in:
Julien Tant
2025-02-12 12:48:36 -07:00
committed by Julien Tant (aider)
parent 43710b018a
commit 1baece68f9
@@ -11,7 +11,7 @@ import (
func TestNewCustomProfileAttributeSelectOption(t *testing.T) {
t.Run("creates valid option with generated ID", func(t *testing.T) {
option := NewCustomProfileAttributeSelectOption("Test Option", "#FF0000")
option := NewCustomProfileAttributesSelectOption("Test Option", "#FF0000")
assert.NotEmpty(t, option.ID)
assert.True(t, IsValidId(option.ID))
@@ -20,7 +20,7 @@ func TestNewCustomProfileAttributeSelectOption(t *testing.T) {
})
t.Run("trims spaces from name and color", func(t *testing.T) {
option := NewCustomProfileAttributeSelectOption(" Test Option ", " #FF0000 ")
option := NewCustomProfileAttributesSelectOption(" Test Option ", " #FF0000 ")
assert.Equal(t, "Test Option", option.Name)
assert.Equal(t, "#FF0000", option.Color)