From e1d228770e57dd7bbf4c156ec9b3383481fd3b66 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 30 Jan 2018 09:58:13 +0100 Subject: [PATCH] Add test that is parsing templates and complains about syntax errors. --- kraftakt_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 kraftakt_test.go diff --git a/kraftakt_test.go b/kraftakt_test.go new file mode 100644 index 0000000..cff24b7 --- /dev/null +++ b/kraftakt_test.go @@ -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) + } +} -- 2.11.0