From a0ba60af19fa00a76ba0fc622bd23c587b6be244 Mon Sep 17 00:00:00 2001 From: carbon-hvze <6391474+carbon-hvze@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:07:02 +0300 Subject: [PATCH] fix tests --- src/zd/core.clj | 16 ++++++++++++---- test/zd/zentext_test.clj | 6 ++++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/zd/core.clj b/src/zd/core.clj index 3550ac5..2e158d5 100644 --- a/src/zd/core.clj +++ b/src/zd/core.clj @@ -9,7 +9,8 @@ [clojure.walk] [ring.util.codec] [zd.view.core :as view]) - (:import [org.httpkit BytesInputStream])) + (:import [org.httpkit BytesInputStream] + [java.io ByteArrayOutputStream])) (defn form-decode [s] @@ -195,15 +196,22 @@ (zen/stop-system ztx)) (comment + (def ztx (start nil true)) + (def ztx (start)) (stop ztx) (:zd/backlinks @ztx) + (def out (ByteArrayOutputStream.)) + + (-> (.diff (:zd/repo @ztx)) + (.setShowNameAndStatusOnly true) + (.setOutputStream out) + (.call)) + (config ztx) (store/re-validate ztx) - (edamame.core/parse-string "{%name name %type fhir/Patient}") - - ) + (edamame.core/parse-string "{%name name %type fhir/Patient}")) diff --git a/test/zd/zentext_test.clj b/test/zd/zentext_test.clj index 82a9378..5d81257 100644 --- a/test/zd/zentext_test.clj +++ b/test/zd/zentext_test.clj @@ -153,7 +153,9 @@ select 1 [:div [:div.code-block [:pre {} - [:code {} "select 1"]]]]) + [:i.fa-solid.fa-copy.copy-button {}] + [:code {} "select 1"] + [:script string?]]]]) (match " * list 1 @@ -257,7 +259,7 @@ select 1 [[:a {:href "/people.niquola"} 'people.niquola]]) (match-inline "Here is inline code `funciton()`" - [string? [:code {:class :c-1320827498} "funciton()"]]) + [string? [:code {} "funciton()"]]) (match-inline "Here is **bold**" [string? [:b "bold"]])