summaryrefslogtreecommitdiff
path: root/test/clarktown/parsers/link_and_image_test.clj
diff options
context:
space:
mode:
authorAsko Nõmm <84135165+askonomm@users.noreply.github.com>2022-04-23 02:43:49 +0300
committerGitHub <noreply@github.com>2022-04-23 02:43:49 +0300
commit70d88384ea788f7b2ad5ebb725762f7d27300504 (patch)
treeb371f12617949daf2b40538ba9a2e4457b657d0f /test/clarktown/parsers/link_and_image_test.clj
parent059bfa7bd9bfdde0c75646bf1dfc20d23da8a02c (diff)
parentdc921cbe1c786995a8670efd9f5556ee9df064f9 (diff)
Merge pull request #17 from askonomm/16-improve-architecture
Improve architecture
Diffstat (limited to 'test/clarktown/parsers/link_and_image_test.clj')
-rw-r--r--test/clarktown/parsers/link_and_image_test.clj23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/clarktown/parsers/link_and_image_test.clj b/test/clarktown/parsers/link_and_image_test.clj
deleted file mode 100644
index 348a8f9..0000000
--- a/test/clarktown/parsers/link_and_image_test.clj
+++ /dev/null
@@ -1,23 +0,0 @@
-(ns clarktown.parsers.link-and-image-test
- (:require
- [clojure.test :refer [deftest testing is]]
- [clarktown.parsers.link-and-image :as link-and-image]))
-
-
-(deftest link-test
- (testing "Creating a link"
- (is (= (link-and-image/render "[This is a link](https://example.com)" nil)
- "<a href=\"https://example.com\">This is a link</a>"))
-
- (is (= (link-and-image/render "[This-is-a-link](https://example.com)" nil)
- "<a href=\"https://example.com\">This-is-a-link</a>"))
-
- (is (= (link-and-image/render "[x] [label](link)" nil)
- "[x] <a href=\"link\">label</a>"))
-
- (is (= (link-and-image/render "[ ] [label](link)" nil)
- "[ ] <a href=\"link\">label</a>")))
-
- (testing "Creating an image"
- (is (= (link-and-image/render "![This is an image](https://example.com)" nil)
- "<img src=\"https://example.com\" alt=\"This is an image\">")))) \ No newline at end of file