Skip to content

Commit 246d035

Browse files
committed
tests: fix md formatter tests
1 parent bd0490d commit 246d035

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

formatter/formatter_md_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func TestMarkdownFormatter_Format(t *testing.T) {
161161
wantErr: false,
162162
},
163163
{
164-
name: "Have 3 hosts (1 is down, skip down: true)",
164+
name: "Have 3 hosts (1 is down)",
165165
f: &MarkdownFormatter{},
166166
args: args{
167167
td: &TemplateData{
@@ -239,7 +239,7 @@ func TestMarkdownFormatter_Format(t *testing.T) {
239239
},
240240
wantErr: false,
241241
validate: func(f *MarkdownFormatter, output string, t *testing.T) {
242-
expect := 2
242+
expect := 3
243243
re := regexp.MustCompile(`## 192\.168\.1\.\d+`)
244244
actual := len(re.FindAllString(output, -1))
245245
if expect != actual {
@@ -248,7 +248,7 @@ func TestMarkdownFormatter_Format(t *testing.T) {
248248
},
249249
},
250250
{
251-
name: "Have 3 hosts (1 is down, skip down: false)",
251+
name: "Have 3 hosts",
252252
f: &MarkdownFormatter{},
253253
args: args{
254254
td: &TemplateData{
@@ -335,7 +335,7 @@ func TestMarkdownFormatter_Format(t *testing.T) {
335335
},
336336
},
337337
{
338-
name: "Have 3 ports (1 host is down, skip down: true)",
338+
name: "Have 3 ports (1 host is down)",
339339
f: &MarkdownFormatter{},
340340
args: args{
341341
td: &TemplateData{

0 commit comments

Comments
 (0)