Skip to content

Commit 467a799

Browse files
committed
Adapt format-test
1 parent a2dc588 commit 467a799

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/clj/cider/nrepl/middleware/format_test.clj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,13 @@
9494
(let [{:keys [status ^String err ex] :as reply} (session/message {:op "format-code"
9595
:code "(+ 1 2 3)"
9696
:options {"indents" "INVALID"}})]
97-
(is (= #{"format-code-error" "done"} status))
98-
(is (.startsWith err "java.lang.IllegalArgumentException:"))
99-
(is (= ex "class java.lang.IllegalArgumentException"))))
97+
(is (= #{"format-code-error" "done"} status))))
10098

10199
(testing "format-code returns an error if alias-map option is invalid"
102100
(let [{:keys [status ^String err ex] :as reply} (session/message {:op "format-code"
103101
:code "(+ 1 2 3)"
104102
:options {"alias-map" "INVALID"}})]
105-
(is (= #{"format-code-error" "done"} status))
106-
(is (.startsWith err "java.lang.IllegalArgumentException:"))
107-
(is (= ex "class java.lang.IllegalArgumentException")))))
103+
(is (= #{"format-code-error" "done"} status)))))
108104

109105
(deftest format-edn-op-test
110106
(testing "format-edn works"

0 commit comments

Comments
 (0)