8000
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 d68ad5e commit 65742a5Copy full SHA for 65742a5
src/clj/cljs/repl/multi_browser.clj
@@ -36,7 +36,6 @@
36
37
clojure.lang.IPersistentMap
38
(-closed? [this] (:closed this))
39
-
40
)
41
42
(defonce
@@ -60,9 +59,12 @@
60
59
([m]
61
(remove (fn [[_ c]] (-closed? c)) m)))
62
63
-(comment
64
- ;; TODO: move to tests
65
- (active-connections {1 {:closed true} 2 {:closed false}})
+(comment ;; Tests
+ (do (assert (= (active-connections {1 {:closed true} 2 {:closed false}})
+ [[2 {:closed false}]]))
+ (assert (= (active-connections {1 {:closed true}}) []))
66
+ (assert (= (active-connections {}) []))
67
+ :ok)
68
69
70
(defn- safe-read-string
0 commit comments