Test correct function
This commit is contained in:
parent
4537956c41
commit
1143ba78a4
1 changed files with 159 additions and 158 deletions
|
@ -43,7 +43,7 @@
|
|||
:remote_url nil,
|
||||
:text_url nil}])
|
||||
|
||||
(def link_prev {:card
|
||||
(def link_prev
|
||||
{:description "forgejo - Beyond coding. We forge.",
|
||||
:author_url "",
|
||||
:image_description "",
|
||||
|
@ -63,9 +63,10 @@
|
|||
"https://cdn.masto.host/socialmeissagmbhde/cache/preview_cards/images/000/545/643/original/199336f5aa5b9683.png",
|
||||
:provider_url "",
|
||||
:height 290,
|
||||
:html ""}})
|
||||
:html ""})
|
||||
|
||||
(def statuses [{:mentions []
|
||||
(def statuses
|
||||
[{:mentions []
|
||||
:emojis []
|
||||
:tags []
|
||||
:reblog
|
||||
|
@ -210,11 +211,11 @@
|
|||
|
||||
(deftest test-masto-media->html
|
||||
(is (= hic/post-with-img
|
||||
(sut/masto-media->html hic/post-base media_attachments))))
|
||||
(sut/masto-media->html hic/post-base-img media_attachments))))
|
||||
|
||||
;(deftest test-masto-link-prev->html
|
||||
; (is (= hic/post-with-prev
|
||||
; (sut/masto-link-prev->html hic/post-base link_prev))))
|
||||
(deftest test-insert-link-prev
|
||||
(is (= hic/post-with-prev
|
||||
(sut/insert-link-prev hic/post-base-prev))))
|
||||
|
||||
(deftest empty-card-should-produce-empty-result
|
||||
(is (= nil
|
||||
|
|
Loading…
Reference in a new issue