Skip to content

Commit

Permalink
Test: Update config_test
Browse files Browse the repository at this point in the history
  • Loading branch information
albertorm95 committed Dec 9, 2022
1 parent 2cd8eda commit ba8a3bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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<pre><code>{{ .Result }}\n</pre></code>\n{{end}}\n<details><summary>Details (Click me)</summary>\n\n<pre><code>{{ .Body }}\n</pre></code></details>\n",
WhenDestroy: WhenDestroy{},
Expand Down Expand Up @@ -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<pre><code>{{ .Result }}\n</pre></code>\n{{end}}\n<details><summary>Details (Click me)</summary>\n\n<pre><code>{{ .Body }}\n</pre></code></details>\n",
WhenAddOrUpdateOnly: WhenAddOrUpdateOnly{
Expand Down Expand Up @@ -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<pre><code>{{ .Result }}\n</pre></code>\n{{end}}\n<details><summary>Details (Click me)</summary>\n\n<pre><code>{{ .Body }}\n</pre></code></details>\n",
WhenDestroy: WhenDestroy{},
Expand Down Expand Up @@ -342,7 +351,7 @@ notifier:
typetalk:
token: token
`),
expected: "Typetalk topic id is missing",
expected: "typetalk topic id is missing",
},
{
contents: []byte(`
Expand Down

0 comments on commit ba8a3bf

Please sign in to comment.