Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests - update namespace to not use reader conditionals for clojure.test #87

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/cljc/hickory/test/core.cljc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(ns hickory.test.core
(:require [hickory.core :refer [as-hickory as-hiccup parse parse-fragment]]
#?(:clj
[clojure.test :refer [deftest is]]
:cljs [cljs.test :refer-macros [is are deftest testing use-fixtures]])))
[clojure.test :refer [deftest is]]))

;; This document tests: doctypes, white space text nodes, attributes,
;; and cdata nodes.
Expand Down
5 changes: 1 addition & 4 deletions test/cljc/hickory/test/hiccup_utils.cljc
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
(ns hickory.test.hiccup-utils
(:require [hickory.hiccup-utils :refer [class-names id normalize-form
tag-name tag-well-formed?]]
#?(:clj
[clojure.test :refer :all]
:cljs [cljs.test :refer-macros [is are deftest testing use-fixtures]])))
[clojure.test :refer [deftest is]]))

#?(:clj
(deftest first-idx-test
Expand Down Expand Up @@ -94,4 +92,3 @@
(is (= [:a {:id nil :class nil}
[:b {:id nil :class nil} "foo" [:i {:id nil :class nil} "bar"]]]
(normalize-form [:a [:b "foo" [:i "bar"]]]))))

3 changes: 1 addition & 2 deletions test/cljc/hickory/test/select.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
[hickory.utils :as utils]
[hickory.zip :as hzip]
[clojure.zip :as zip]
#?(:clj[clojure.test :refer :all]
:cljs [cljs.test :refer-macros [is are deftest testing use-fixtures]])))
[clojure.test :refer [deftest is testing]]))

(def html1
"<!DOCTYPE html>
Expand Down
3 changes: 1 addition & 2 deletions test/cljc/hickory/test/zip.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
(:require [clojure.zip :as zip]
[hickory.core :refer [as-hiccup as-hickory parse]]
[hickory.zip :refer [hickory-zip hiccup-zip]]
#?(:clj[clojure.test :refer :all]
:cljs [cljs.test :refer-macros [is are deftest testing use-fixtures]])))
[clojure.test :refer [deftest is]]))

(deftest hickory-zipper
(is (= {:type :document,
Expand Down