mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-01 18:56:52 +00:00
Added test for --markdown-linebreak-ext and --chars together
This commit is contained in:
parent
a33a8f0d8a
commit
0114962a74
1 changed files with 8 additions and 0 deletions
|
|
@ -94,3 +94,11 @@ def test_custom_charset_no_change(tmpdir):
|
|||
path.write('\ta \t\n')
|
||||
ret = main([path.strpath, '--chars', ' '])
|
||||
assert ret == 0
|
||||
|
||||
|
||||
def test_markdown_with_custom_charset(tmpdir):
|
||||
path = tmpdir.join('file.md')
|
||||
path.write('\ta \t \n')
|
||||
ret = main([path.strpath, '--chars', ' ', '--markdown-linebreak-ext', '*'])
|
||||
assert ret == 1
|
||||
assert path.read() == '\ta \t \n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue