mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
359 B
21 lines
359 B
package lint
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
const templateTestBasedir = "./testdata/albatross"
|
|
|
|
func TestTemplate(t *testing.T) {
|
|
res := Templates(templateTestBasedir)
|
|
|
|
if len(res) != 1 {
|
|
t.Fatalf("Expected one error, got %d", len(res))
|
|
}
|
|
|
|
if !strings.Contains(res[0].Text, "deliberateSyntaxError") {
|
|
t.Errorf("Unexpected error: %s", res[0])
|
|
}
|
|
}
|