From 1baece68f945de3d8fe8d4fe9df0ebcb243ba5f7 Mon Sep 17 00:00:00 2001 From: Julien Tant Date: Wed, 12 Feb 2025 12:48:36 -0700 Subject: [PATCH] refactor: Rename NewCustomProfileAttributeSelectOption to NewCustomProfileAttributesSelectOption --- server/public/model/custom_profile_attributes_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/public/model/custom_profile_attributes_test.go b/server/public/model/custom_profile_attributes_test.go index 906239ebe3a..f6084a3683b 100644 --- a/server/public/model/custom_profile_attributes_test.go +++ b/server/public/model/custom_profile_attributes_test.go @@ -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)