Add test that is parsing templates and complains about syntax errors.
[kraftakt.git] / kraftakt_test.go
1 package kraftakt
2
3 import (
4         "html/template"
5         "testing"
6 )
7
8 func TestTemplates(t *testing.T) {
9         if _, err := template.ParseGlob("templates/*.html"); err != nil {
10                 t.Errorf(`template.ParseGlob("templates/*.html") = %v`, err)
11         }
12 }