summaryrefslogtreecommitdiff
path: root/test/clarktown/parsers/code_block_test.clj
blob: 20b69aa0a929fea093e68adca3557c65088227d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
(ns clarktown.parsers.code-block-test
  (: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 (io/file (io/resource "test/parsers/code_block_result.html")))
           (code-block/render (slurp (io/file (io/resource "test/parsers/code_block.md"))) nil)))))