Update transformer_test.clj

Use more appropriate test without `str/trim`.
This commit is contained in:
Johan Mynhardt 2022-05-26 04:10:09 +02:00 committed by Johan Mynhardt (MEA)
parent 44b28902db
commit ac80507b5f

View file

@ -7,7 +7,5 @@
(deftest transform-payload
(testing "String `obj` for: 3. A string representation of an (X)HTML fragment;"
(is (= "# This is a header"
(str/trim (-> "<h1>This is a header"
(transform markdown-dispatcher)
(first)))))))
(is (= '("\n# This is a header\n")
(transform "<h1>This is a header</h1>" markdown-dispatcher)))))