1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

uppercase ID

This commit is contained in:
Julien Tant 2023-02-01 18:27:06 -07:00
parent 619e1b4619
commit 7762d626b3
No known key found for this signature in database
GPG Key ID: C10894F68ABEEDFD

View File

@ -35,23 +35,23 @@ func TestGetTemplatesForWorkTemplate(t *testing.T) {
th.CheckOK(resp)
require.NotNil(t, rBoards)
trackingTemplateIds := []string{}
trackingTemplateIDs := []string{}
for _, board := range rBoards {
property, _ := board.GetPropertyString("trackingTemplateId")
if property != "" {
trackingTemplateIds = append(trackingTemplateIds, property)
trackingTemplateIDs = append(trackingTemplateIDs, property)
}
}
// make sure all known templates are in trackingTemplateIds
for name, ttId := range knownInWorkTemplates {
for name, ttID := range knownInWorkTemplates {
found := false
for _, trackingTemplateId := range trackingTemplateIds {
if trackingTemplateId == ttId {
for _, trackingTemplateID := range trackingTemplateIDs {
if trackingTemplateID == ttID {
found = true
break
}
}
require.True(t, found, "trackingTemplateId %s for %s not found", ttId, name)
require.True(t, found, "trackingTemplateId %s for %s not found", ttID, name)
}
}