Rename to data_helpers

This commit is contained in:
erik 2024-05-28 15:45:06 +02:00
parent b16e3ea61f
commit 6bcbfa4da6
2 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@
(:require (:require
[cljs.test :refer (deftest is)] [cljs.test :refer (deftest is)]
[dda.masto-embed.account-mode :as sut] [dda.masto-embed.account-mode :as sut]
[dda.masto-embed.hiccs :as hic] [dda.masto-embed.data-helpers :as dh]
[hickory.core :as h] [hickory.core :as h]
[hickory.convert :as hc] [hickory.convert :as hc]
[shadow.resource :as rc])) [shadow.resource :as rc]))
@ -77,14 +77,14 @@
; (sut/masto->html statuses)))) ; (sut/masto->html statuses))))
(deftest test-masto-media->html (deftest test-masto-media->html
(is (= hic/post-with-img (is (= dh/post-with-img
(sut/masto-media->html hic/post-base-img media_attachments)))) (sut/masto-media->html dh/post-base-img media_attachments))))
(deftest test-insert-link-prev (deftest test-insert-link-prev
(is (= hic/post-with-prev (is (= dh/post-with-prev
(sut/insert-link-prev hic/post-base-prev)))) (sut/insert-link-prev dh/post-base-prev))))
(deftest test-masto-link-prev->html (deftest test-masto-link-prev->html
(is (= hic/filled-post-with-prev (is (= dh/filled-post-with-prev
(sut/masto-link-prev->html hic/post-base-prev link_prev)))) (sut/masto-link-prev->html dh/post-base-prev link_prev))))

View file

@ -1,4 +1,4 @@
(ns dda.masto-embed.hiccs) (ns dda.masto-embed.data-helpers)
(def post-base-img (def post-base-img
{:type :document, {:type :document,