Skip to content

Commit c771f00

Browse files
committed
[tests] Remove glow.core link in tests
We had a commented-out test that relied on glow.core, which is unusable due to our now excluding hiccup and garden from Pyro's dependencies. In the future I'll probably want to refactor Glow so that glow.core doesn't immediately bring in hiccup and garden, but I don't feel like doing that right now.
1 parent 608d6cb commit c771f00

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

test/pyro/source_test.clj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(ns pyro.source-test
22
(:require [clojure.test :refer :all]
3-
[glow.core :as glow]
43
[pyro.source :as source]))
54

65
(deftest pad-integer-test
@@ -28,10 +27,3 @@
2827
:fn "sample-var"
2928
:file "core_test.clj"})
3029
"pyro/core_test.clj")))
31-
32-
;; I don't feel like doing this right now
33-
#_(deftest source-fn-works
34-
(let [fp (:file (meta #'clojure.core/contains?))]
35-
(with-redefs [glow/highlight identity]
36-
(is (= (source/source-fn fp 1421 3)
37-
" it will not perform a linear search for a value. See also 'some'.\"\n {:added \"1.0\"\n :static true}\n--> [coll key] (. clojure.lang.RT (contains coll key)))\n \n (defn get\n \"Returns the value mapped to key, not-found or nil if key not present.\"")))))

0 commit comments

Comments
 (0)