Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Filipe Laíns
aurweb
Commits
81faab99
Commit
81faab99
authored
Feb 02, 2020
by
Frédéric Mangano-Tarumi
Committed by
Lukas Fleischer
Feb 02, 2020
Browse files
rendercomment: test headings lowering
Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
127bb4c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/t2600-rendercomment.sh
View file @
81faab99
...
...
@@ -129,4 +129,30 @@ test_expect_success 'Test Flyspray issue linkification.' '
test_cmp actual expected
'
test_expect_success
'Test headings lowering.'
'
sqlite3 aur.db <<-EOD &&
INSERT INTO PackageComments (ID, PackageBaseID, Comments, RenderedComment) VALUES (7, 1, "
# One
## Two
### Three
#### Four
##### Five
###### Six
", "");
EOD
"$RENDERCOMMENT" 7 &&
cat <<-EOD >expected &&
<h5>One</h5>
<h6>Two</h6>
<h6>Three</h6>
<h6>Four</h6>
<h6>Five</h6>
<h6>Six</h6>
EOD
sqlite3 aur.db <<-EOD >actual &&
SELECT RenderedComment FROM PackageComments WHERE ID = 7;
EOD
test_cmp actual expected
'
test_done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment