babashka/test-resources/lib_tests/clarktown/parsers/quote_block_test.clj
Bob 1113037b51
add Clarktown lib tests (#1247)
* add lib tests for clarktown

* add clarktown to library list

* make code block test agnostic to line separator
2022-04-17 20:11:33 +02:00

15 lines
No EOL
527 B
Clojure

(ns clarktown.parsers.quote-block-test
(:require
[clojure.test :refer [deftest testing is]]
[clarktown.parsers.quote-block :as quote-block]))
(deftest quote-block-block-test
(testing "Creating a quote block line"
(is (= (quote-block/render "> First line\n> second line" nil)
"<blockquote>First line\nsecond line</blockquote>")))
(testing "Checking a quote block"
(is (true? (quote-block/is? "> Test")))
(is (true? (quote-block/is? " > Test")))
(is (true? (quote-block/is? ">")))))