Skip to content

Commit 35b1376

Browse files
committed
fix tests
1 parent 881bd94 commit 35b1376

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/cider-util-tests.el

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,11 @@ buffer."
129129
(with-clojure-buffer ":abc/foo"
130130
(expect (cider-symbol-at-point) :to-equal ":abc/foo")))
131131

132-
(it "attempts to resolve namespaced keywords"
133-
(spy-on 'cider-connected-p :and-return-value t)
134-
(spy-on 'cider-sync-tooling-eval :and-return-value '(dict "value" ":foo.bar/abc"))
132+
(it "does not attempt to resolve namespaced keywords"
135133
(with-clojure-buffer "(ns foo.bar) ::abc"
136-
(expect (cider-symbol-at-point) :to-equal ":foo.bar/abc"))
137-
(spy-on 'cider-sync-tooling-eval :and-return-value '(dict "value" ":clojure.string/abc"))
134+
(expect (cider-symbol-at-point) :to-equal "::abc"))
138135
(with-clojure-buffer "(ns foo.bar (:require [clojure.string :as str])) ::str/abc"
139-
(expect (cider-symbol-at-point) :to-equal ":clojure.string/abc"))))
136+
(expect (cider-symbol-at-point) :to-equal "::str/abc"))))
140137

141138
(describe "when there's nothing at point"
142139
(it "returns nil"

0 commit comments

Comments
 (0)