Add test that is parsing templates and complains about syntax errors.
authorFlorian Forster <ff@octo.it>
Tue, 30 Jan 2018 08:58:13 +0000 (09:58 +0100)
committerFlorian Forster <ff@octo.it>
Tue, 30 Jan 2018 08:58:13 +0000 (09:58 +0100)
kraftakt_test.go [new file with mode: 0644]

diff --git a/kraftakt_test.go b/kraftakt_test.go
new file mode 100644 (file)
index 0000000..cff24b7
--- /dev/null
@@ -0,0 +1,12 @@
+package kraftakt
+
+import (
+       "html/template"
+       "testing"
+)
+
+func TestTemplates(t *testing.T) {
+       if _, err := template.ParseGlob("templates/*.html"); err != nil {
+               t.Errorf(`template.ParseGlob("templates/*.html") = %v`, err)
+       }
+}