Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
respatialized committed Oct 6, 2024
1 parent 0a47ec3 commit 29a8c40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/site/fabricate/dev/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
[hiccup-page-data output-file]
(let [parent-dir (fs/parent output-file)]
(create-dir? parent-dir)
(spit output-file (c/html [c/doctype-html5] hiccup-page-data))))
(spit output-file (c/html [c/doctype-html5 hiccup-page-data]))))

(defn subpath
([dir p] (apply fs/path (drop 1 (fs/components (fs/relativize dir p)))))
Expand Down
5 changes: 3 additions & 2 deletions test/site/fabricate/prototype/hiccup_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
[:p "some text"]
(let [img-url "src-url.jpg"]
(with-meta [:img img-url]
{:page/icon img-url
"some-prop" "a property"}))]
{:page/icon img-url
"some-prop" "a property"}))]
{}))))
(t/testing "html header"
(t/is
Expand All @@ -62,6 +62,7 @@
[:link {:rel "stylesheet" :href "/css/remedy.css"}]
[:link {:rel "stylesheet" :href "/css/patterns.css"}]
[:link {:rel "stylesheet" :href "/css/extras.css"}]
[:link {:rel "stylesheet" :href "/css/fabricate.css"}]
[:meta {:name "title" :content "Fabricate" :property "og:title"}]
[:meta
{:name "description" :content "test page" :property "og:description"}]
Expand Down

0 comments on commit 29a8c40

Please sign in to comment.