mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
tpl/internal: Synch Go templates fork with Go 1.16dev
This commit is contained in:
@@ -1825,7 +1825,7 @@ func TestIndirectPrint(t *testing.T) {
|
||||
}
|
||||
|
||||
// This is a test for issue 3272.
|
||||
func TestEmptyTemplate(t *testing.T) {
|
||||
func TestEmptyTemplateHTML(t *testing.T) {
|
||||
page := Must(New("page").ParseFiles(os.DevNull))
|
||||
if err := page.ExecuteTemplate(os.Stdout, "page", "nothing"); err == nil {
|
||||
t.Fatal("expected error")
|
||||
|
Reference in New Issue
Block a user