mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
refactor: Rename NewCustomProfileAttributeSelectOption to NewCustomProfileAttributesSelectOption
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user