diff options
| author | Asko Nomm <asko@bien.ee> | 2022-04-07 12:56:12 +0200 |
|---|---|---|
| committer | Asko Nomm <asko@bien.ee> | 2022-04-07 12:56:12 +0200 |
| commit | f1bc9307661a91c7cd41f6920338eb1a8cf003b7 (patch) | |
| tree | 6cd0237a71d86837c447286b71ee54f7c9aaa888 /test/clarktown/parsers/code_block_test.clj | |
| parent | 5aea1a232f57cd0ea7e732fde9a6a623c0ce297e (diff) | |
Fix tests
Diffstat (limited to 'test/clarktown/parsers/code_block_test.clj')
| -rw-r--r-- | test/clarktown/parsers/code_block_test.clj | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/clarktown/parsers/code_block_test.clj b/test/clarktown/parsers/code_block_test.clj index 1bd51b2..20b69aa 100644 --- a/test/clarktown/parsers/code_block_test.clj +++ b/test/clarktown/parsers/code_block_test.clj @@ -1,9 +1,11 @@ (ns clarktown.parsers.code-block-test - (:require [clojure.test :refer [deftest testing is]] - [clarktown.parsers.code-block :as code-block])) + (:require + [clojure.test :refer [deftest testing is]] + [clojure.java.io :as io] + [clarktown.parsers.code-block :as code-block])) (deftest code-block-test (testing "Code block" - (is (= (slurp "./resources/test/parsers/code_block_result.html") - (code-block/render (slurp "./resources/test/parsers/code_block.md") nil)))))
\ No newline at end of file + (is (= (slurp (io/file (io/resource "test/parsers/code_block_result.html"))) + (code-block/render (slurp (io/file (io/resource "test/parsers/code_block.md"))) nil)))))
\ No newline at end of file |
