babashka/test-resources/lib_tests/clarktown/parsers/empty_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

14 lines
395 B
Clojure

(ns clarktown.parsers.empty-block-test
(:require
[clojure.test :refer [deftest testing is]]
[clarktown.parsers.empty-block :as empty-block]))
(deftest empty-block-test
(testing "Rendering an empty block"
(is (= (empty-block/render "" nil)
"")))
(testing "Checking an empty block"
(is (true? (empty-block/is? "")))
(is (true? (empty-block/is? " ")))))