We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a569a5f commit 5d003b5Copy full SHA for 5d003b5
1 file changed
test/cider-client-tests.el
@@ -62,6 +62,19 @@
62
(expect (nrepl-dict-get (cider-var-info "str") "doc")
63
:to-equal "stub"))
64
65
+ (it "falls back to lookup when info op is not available"
66
+ (spy-on 'cider-sync-request:lookup :and-return-value
67
+ '(dict
68
+ "arglists" "([] [x] [x & ys])"
69
+ "ns" "clojure.core"
70
+ "name" "str"
71
+ "doc" "stub"))
72
+ (spy-on 'cider-nrepl-op-supported-p :and-call-fake
73
+ (lambda (op &optional conn)
74
+ (string= op "lookup")))
75
+ (expect (nrepl-dict-get (cider-var-info "str") "doc")
76
+ :to-equal "stub"))
77
+
78
(it "returns nil in the absence of the info and lookup middleware"
79
(spy-on 'cider-nrepl-op-supported-p :and-return-value nil)
80
(expect (cider-var-info "str") :to-equal nil)))
0 commit comments