Skip to content

Commit 5af614d

Browse files
committed
Adapt some tests that were failing as of master
1 parent 8cc1f4f commit 5af614d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/clj/cider/nrepl/middleware/info_test.clj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,10 @@
340340
(is (= (:status response) #{"no-info" "done"})
341341
(pr-str response))))
342342

343-
(testing "ensure info returns a no-info packet if ns not found"
343+
(testing "info does not return a no-info packet if ns not found,
344+
but `:sym` is unqualified and resolves to a clojure.core var"
344345
(let [response (session/message {:op "info" :sym "+" :ns "fakefakefake"})]
345-
(is (= (:status response) #{"no-info" "done"})
346+
(is (= (:status response) #{"done"})
346347
(pr-str response))))
347348

348349
(testing "ensure info returns a no-info packet if class not found"
@@ -361,9 +362,10 @@
361362
(is (= (:status response) #{"no-eldoc" "done"})
362363
(pr-str response))))
363364

364-
(testing "ensure eldoc returns a no-eldoc packet if ns not found"
365+
(testing "eldoc does not return a no-eldoc packet if ns not found,
366+
but `:sym` is unqualified and resolves to a clojure.core var"
365367
(let [response (session/message {:op "eldoc" :sym "+" :ns "fakefakefake"})]
366-
(is (= (:status response) #{"no-eldoc" "done"})
368+
(is (= (:status response) #{"done"})
367369
(pr-str response))))
368370

369371
(testing "ensure eldoc returns a no-eldoc packet if class not found"

0 commit comments

Comments
 (0)