From ac80507b5f5c39213a649d0aee2ca4877ac1ce4d Mon Sep 17 00:00:00 2001 From: Johan Mynhardt Date: Thu, 26 May 2022 04:10:09 +0200 Subject: [PATCH] Update transformer_test.clj Use more appropriate test without `str/trim`. --- test/html_to_md/transformer_test.clj | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/html_to_md/transformer_test.clj b/test/html_to_md/transformer_test.clj index e1b7e5f..1a1e6d8 100644 --- a/test/html_to_md/transformer_test.clj +++ b/test/html_to_md/transformer_test.clj @@ -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 (-> "

This is a header" - (transform markdown-dispatcher) - (first))))))) + (is (= '("\n# This is a header\n") + (transform "

This is a header

" markdown-dispatcher)))))