Skip to content

Commit

Permalink
chore: add extra test for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Sep 29, 2023
1 parent 5482874 commit 80ade14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions parser/v2/commentparser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ func TestCommentParser(t *testing.T) {
Contents: ` <p class="test">tag</p> `,
},
},
{
name: "comments can contain tags",
input: `<!-- <div> hello world </div> -->`,
expected: Comment{
Contents: ` <div> hello world </div> `,
},
},
}
for _, tt := range tests {
tt := tt
Expand Down

0 comments on commit 80ade14

Please sign in to comment.