0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-06-02 17:39:39 +02:00
git-sv/cmd/git-sv/resources_test.go

27 lines
455 B
Go
Raw Normal View History

package main
import (
"testing"
)
func Test_checkTemplatesFiles(t *testing.T) {
tests := []string{
"resources/templates/changelog-md.tpl",
"resources/templates/releasenotes-md.tpl",
}
for _, tt := range tests {
t.Run(tt, func(t *testing.T) {
got, err := defaultTemplatesFS.ReadFile(tt)
if err != nil {
t.Errorf("missing template error = %v", err)
2023-10-12 16:18:25 +02:00
return
}
2023-10-12 16:18:25 +02:00
if len(got) == 0 {
t.Errorf("empty template")
}
})
}
}