mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-13 21:30:40 +00:00
0230b1e00f
issue: #40
25 lines
453 B
Go
25 lines
453 B
Go
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)
|
|
return
|
|
}
|
|
if len(got) <= 0 {
|
|
t.Errorf("empty template")
|
|
}
|
|
})
|
|
}
|
|
}
|