Skip to content

Commit 689ac43

Browse files
committed
tests: Added formatting test for leaving empty line when removing empty comment(s)
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent de75dce commit 689ac43

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

tests/format/005_bundle_comments.expected.cf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ bundle agent f(s, d, o, p)
4747
reports:
4848
"Hello, world!";
4949
}
50+
51+
bundle agent g
52+
{
53+
# comment
54+
}

tests/format/005_bundle_comments.input.cf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ bundle agent f(
4545
reports:
4646
"Hello, world!";
4747
}
48+
#
49+
bundle agent g
50+
{
51+
# comment
52+
}

0 commit comments

Comments
 (0)