mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: return organization's display name and icon in templates (#13858)
* chore: templates return organization display name and icon * templates api response includes organization display name and icon
This commit is contained in:
@@ -451,6 +451,8 @@ func TestTemplatesByOrganization(t *testing.T) {
|
||||
for _, tmpl := range templates {
|
||||
require.Equal(t, tmpl.OrganizationID, user.OrganizationID, "organization ID")
|
||||
require.Equal(t, tmpl.OrganizationName, org.Name, "organization name")
|
||||
require.Equal(t, tmpl.OrganizationDisplayName, org.DisplayName, "organization display name")
|
||||
require.Equal(t, tmpl.OrganizationIcon, org.Icon, "organization display name")
|
||||
}
|
||||
})
|
||||
t.Run("MultipleOrganizations", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user