1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-30 03:26:01 -04:00
This commit is contained in:
Zettat123 2024-05-27 09:41:14 +08:00
parent dad04696c5
commit 53df2a83c3

View File

@ -42,7 +42,7 @@ func TestIssueTemplate_Type(t *testing.T) {
} }
} }
func TestIssueTemplateLabels_UnmarshalYAML(t *testing.T) { func TestIssueTemplateStringSlice_UnmarshalYAML(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
content string content string
@ -88,7 +88,7 @@ labels:
b: bb b: bb
`, `,
tmpl: &IssueTemplate{}, tmpl: &IssueTemplate{},
wantErr: "line 3: cannot unmarshal !!map into IssueTemplateLabels", wantErr: "line 3: cannot unmarshal !!map into IssueTemplateStringSlice",
}, },
} }
for _, tt := range tests { for _, tt := range tests {