Skip to content

Commit c9d99e3

Browse files
committed
test: ensure unmodified message after comments stripped
1 parent 1b9773f commit c9d99e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def test_strip_comments__consecutive():
136136
"""
137137
result = format.strip_comments(input)
138138
assert result.count("\n") == 1
139+
assert result.strip() == "feat(scope): message"
139140

140141

141142
def test_strip_comments__spaced():
@@ -146,6 +147,7 @@ def test_strip_comments__spaced():
146147
"""
147148
result = format.strip_comments(input)
148149
assert result.count("\n") == 2
150+
assert result.strip() == "feat(scope): message"
149151

150152

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

0 commit comments

Comments
 (0)