Skip to content

Commit cb8cf8a

Browse files
committed
JS: Add tests.
1 parent 0430c71 commit cb8cf8a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# leading file comment
2+
--- # document marker comment
3+
root: #comment after root key
4+
# indented comment before first property
5+
name: "odd" # comment after quoted scalar
6+
empty: #comment after an explicit null value
7+
list: # comment after list key
8+
# comment before sequence item
9+
- id: 1 #comment after inline sequence mapping
10+
label: plain # comment after plain scalar
11+
- # comment after bare dash
12+
id: 2 # comment after mapping key in sequence
13+
enabled: true #comment after boolean
14+
tags: [alpha, beta] # comment after flow sequence
15+
flow_map: {left: 1, right: 2} # comment after flow mapping
16+
flow_list: [first, second, "third # not a comment"] # comment after flow list
17+
block: | #comment after literal scalar header
18+
this line belongs to the scalar
19+
# this hash is text, not a YAML comment
20+
folded: > #comment after folded scalar header
21+
folded text with # also just text
22+
and another scalar line
23+
trailing_hash: "there is # no comment # in here" # comment after hash-looking value
24+
# comment between body and document end
25+
... # document end comment
26+
# final comment after document end

0 commit comments

Comments
 (0)