16 lines
348 B
Go
16 lines
348 B
Go
package utils_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.sapphic.engineer/roleypoly/v4/utils"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestRoleInputID(t *testing.T) {
|
|
assert.Equal(t, "category-123_role-456", utils.RoleInputID("123", "456"))
|
|
}
|
|
|
|
func TestRoleInputName(t *testing.T) {
|
|
assert.Equal(t, "category_group_123", utils.RoleInputName("123"))
|
|
}
|