package service_test import ( "strings" "testing" "apigo.cc/gojs" _ "apigo.cc/gojs/service" "github.com/ssgo/u" ) func TestTpl(t *testing.T) { r, err := gojs.RunFile("tpl.js") if err != nil { t.Fatal("test static failed, got error", err) } if !strings.Contains(u.String(r), "

Welcome to Abc

") { t.Fatal("test tpl failed, name not match", r) } }