ref: 1366c6687693ba6093ccf500d3f8f6a080391516
parent: 6a8bbfbcdd993c9ca66055cd4b3fd157d76799d7
parent: 5a2724c2dd20c4deb779609e667a84144880946c
author: Michael Misch <michaelmisch1985@gmail.com>
date: Mon Mar 30 03:46:06 PDT 2020
Merge pull request #15 from olmaxmedical/testing Add template test for automation
--- /dev/null
+++ b/template_test.go
@@ -1,0 +1,28 @@
+package template
+
+import (
+ "testing"
+ "text/template"
+)
+
+func TestTemplates(t *testing.T) {
+ if _, e := template.ParseGlob("*.tpl"); e != nil {
+ t.Error(e)
+ }
+
+ if _, e := template.ParseGlob("help/*.tpl"); e != nil {
+ t.Error(e)
+ }
+
+ if _, e := template.ParseGlob("doctor/*.tpl"); e != nil {
+ t.Error(e)
+ }
+
+ if _, e := template.ParseGlob("patient/*.tpl"); e != nil {
+ t.Error(e)
+ }
+
+ if _, e := template.ParseGlob("plugins/*.tpl"); e != nil {
+ t.Error(e)
+ }
+}