summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/clarktown/renderers/link_and_image_test.clj5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/clarktown/renderers/link_and_image_test.clj b/test/clarktown/renderers/link_and_image_test.clj
index d17e070..e336057 100644
--- a/test/clarktown/renderers/link_and_image_test.clj
+++ b/test/clarktown/renderers/link_and_image_test.clj
@@ -20,4 +20,7 @@
(testing "Creating an image"
(is (= (link-and-image/render "![This is an image](https://example.com)" nil nil)
- "<img src=\"https://example.com\" alt=\"This is an image\">")))) \ No newline at end of file
+ "<img src=\"https://example.com\" alt=\"This is an image\">"))
+
+ (is (= (link-and-image/render "![](https://example.com)" nil nil)
+ "<img src=\"https://example.com\" alt=\"\">"))))