aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-30 13:55:08 +0100
committerMario Vavti <mario@mariovavti.com>2018-10-30 13:55:08 +0100
commit0b371c8103b49a1bc9cde99fc13dabc330e9936c (patch)
tree42924dc24d0868474e0d9ec406a58ba46d582f59 /tests/unit
parent2192ea6fdf21a00ccf44d626a01b756d194d6cbe (diff)
downloadvolse-hubzilla-0b371c8103b49a1bc9cde99fc13dabc330e9936c.tar.gz
volse-hubzilla-0b371c8103b49a1bc9cde99fc13dabc330e9936c.tar.bz2
volse-hubzilla-0b371c8103b49a1bc9cde99fc13dabc330e9936c.zip
fix html2markdown() and re-enable previously failing tests
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/includes/MarkdownTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/includes/MarkdownTest.php b/tests/unit/includes/MarkdownTest.php
index f0e253a58..c1408b303 100644
--- a/tests/unit/includes/MarkdownTest.php
+++ b/tests/unit/includes/MarkdownTest.php
@@ -52,12 +52,12 @@ class MarkdownTest extends UnitTestCase {
' &nbsp;',
''
],
-/* it is not clear why this test fails
+
'strong, b, em, i, bib' => [
'<strong>strong</strong> <b>bold</b> <em>em</em> <i>italic</i> <b>bo<i>italic</i>ld</b>',
'**strong** **bold** _em_ _italic_ **bo_italic_ld**'
],
-*/
+
'empty tags' => [
'text1 <b></b> text2 <i></i>',
'text1 text2'
@@ -118,12 +118,12 @@ class MarkdownTest extends UnitTestCase {
'<code>&lt;p&gt;HTML text&lt;/p&gt;</code>',
'`<p>HTML text</p>`'
],
-/* it is not clear why this test fails
+
'pre' => [
'<pre> line with spaces </pre>',
'` line with spaces `'
],
-*/
+
'div p' => [
'<div>div</div><div><p>p</p></div>',
"<div>div</div><div>p\n\n</div>"