Skip to content

Commit becc664

Browse files
committed
Formatting test 002: Added an example of multiple promise types
We want to insert newlines before promise types (promise guards). So we need a test for this. Will fix the implementation in a subsequent commit. Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent 0cd3ebc commit becc664

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

tests/format/002_basics.expected.cf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ bundle agent main
2929
if => "bar"
3030
# Comment at atttribute level
3131
string => "some_value";
32+
33+
classes:
34+
# Comment before promise
35+
"a" if => "b";
3236
}

tests/format/002_basics.input.cf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ baz::
2626
if => "bar"
2727
# Comment at atttribute level
2828
string => "some_value";
29+
classes:
30+
# Comment before promise
31+
"a" if => "b";
2932
}

0 commit comments

Comments
 (0)