From 1630f9046fbb1a8d94877aa899372363bbac44db Mon Sep 17 00:00:00 2001 From: Alberto Rojas Date: Fri, 9 Dec 2022 08:09:32 -0700 Subject: [PATCH] Test: Update config_test --- config/config_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/config_test.go b/config/config_test.go index 74a79e4..7ca7a99 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -49,6 +49,9 @@ func TestLoadFile(t *testing.T) { Fmt: Fmt{ Template: "", }, + Validate: Validate{ + Template: "", + }, Plan: Plan{ Template: "{{ .Title }}\n{{ .Message }}\n{{if .Result}}\n
{{ .Result }}\n
\n{{end}}\n
Details (Click me)\n\n
{{ .Body }}\n
\n", WhenDestroy: WhenDestroy{}, @@ -91,6 +94,9 @@ func TestLoadFile(t *testing.T) { Fmt: Fmt{ Template: "", }, + Validate: Validate{ + Template: "", + }, Plan: Plan{ Template: "{{ .Title }}\n{{ .Message }}\n{{if .Result}}\n
{{ .Result }}\n
\n{{end}}\n
Details (Click me)\n\n
{{ .Body }}\n
\n", WhenAddOrUpdateOnly: WhenAddOrUpdateOnly{ @@ -145,6 +151,9 @@ func TestLoadFile(t *testing.T) { Fmt: Fmt{ Template: "", }, + Validate: Validate{ + Template: "", + }, Plan: Plan{ Template: "{{ .Title }}\n{{ .Message }}\n{{if .Result}}\n
{{ .Result }}\n
\n{{end}}\n
Details (Click me)\n\n
{{ .Body }}\n
\n", WhenDestroy: WhenDestroy{}, @@ -342,7 +351,7 @@ notifier: typetalk: token: token `), - expected: "Typetalk topic id is missing", + expected: "typetalk topic id is missing", }, { contents: []byte(`