From 732eeb88b4754e7945249c650fbe79ce5c7af063 Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Sat, 9 Apr 2022 14:55:08 +0200 Subject: Add full test coverage for horizontal line block (re #4) --- resources/test/core.md | 2 ++ resources/test/core_result.html | 2 ++ test/clarktown/parsers/horizontal_line_block_test.clj | 10 ++++++++++ 3 files changed, 14 insertions(+) create mode 100644 test/clarktown/parsers/horizontal_line_block_test.clj diff --git a/resources/test/core.md b/resources/test/core.md index d699887..1770f21 100644 --- a/resources/test/core.md +++ b/resources/test/core.md @@ -62,6 +62,8 @@ This is ___bold italic text___ and ***this is also***. *What about italic text t * Continuing sub list item * Continuing list item +*** + * List item * Another list item * Sub list item diff --git a/resources/test/core_result.html b/resources/test/core_result.html index 5e9513b..0f242a7 100644 --- a/resources/test/core_result.html +++ b/resources/test/core_result.html @@ -48,6 +48,8 @@ function markdownToHTML(markdown) { +
+

This is a H1 heading with settext

diff --git a/test/clarktown/parsers/horizontal_line_block_test.clj b/test/clarktown/parsers/horizontal_line_block_test.clj new file mode 100644 index 0000000..c8c0e90 --- /dev/null +++ b/test/clarktown/parsers/horizontal_line_block_test.clj @@ -0,0 +1,10 @@ +(ns clarktown.parsers.horizontal-line-block-test + (:require + [clojure.test :refer [deftest testing is]] + [clarktown.parsers.horizontal-line-block :as horizontal-line-block])) + + +(deftest horizontal-line-block-test + (testing "Creating a horizontal line" + (is (= "
" + (horizontal-line-block/render "***" nil))))) \ No newline at end of file -- cgit v1.2.3