mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Enable testifylint rules (#34075)
enable testifylint rules disabled in: https://github.com/go-gitea/gitea/pull/34054
This commit is contained in:
@@ -14,17 +14,17 @@ func TestMergeCustomLabels(t *testing.T) {
|
||||
all: []string{"a", "a.yaml", "a.yml"},
|
||||
custom: nil,
|
||||
})
|
||||
assert.EqualValues(t, []string{"a.yaml"}, files, "yaml file should win")
|
||||
assert.Equal(t, []string{"a.yaml"}, files, "yaml file should win")
|
||||
|
||||
files = mergeCustomLabelFiles(optionFileList{
|
||||
all: []string{"a", "a.yaml"},
|
||||
custom: []string{"a"},
|
||||
})
|
||||
assert.EqualValues(t, []string{"a"}, files, "custom file should win")
|
||||
assert.Equal(t, []string{"a"}, files, "custom file should win")
|
||||
|
||||
files = mergeCustomLabelFiles(optionFileList{
|
||||
all: []string{"a", "a.yml", "a.yaml"},
|
||||
custom: []string{"a", "a.yml"},
|
||||
})
|
||||
assert.EqualValues(t, []string{"a.yml"}, files, "custom yml file should win if no yaml")
|
||||
assert.Equal(t, []string{"a.yml"}, files, "custom yml file should win if no yaml")
|
||||
}
|
||||
|
Reference in New Issue
Block a user