Skip to content

Commit

Permalink
test: ensure unmodified message after comments stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jan 12, 2024
1 parent 1b9773f commit c9d99e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def test_strip_comments__consecutive():
"""
result = format.strip_comments(input)
assert result.count("\n") == 1
assert result.strip() == "feat(scope): message"


def test_strip_comments__spaced():
Expand All @@ -146,6 +147,7 @@ def test_strip_comments__spaced():
"""
result = format.strip_comments(input)
assert result.count("\n") == 2
assert result.strip() == "feat(scope): message"


@pytest.mark.parametrize("type", format.DEFAULT_TYPES)
Expand Down

0 comments on commit c9d99e3

Please sign in to comment.