Skip to content

Commit

Permalink
failing mount-point test
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurC committed Jul 4, 2024
1 parent 9814e84 commit d6492a5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/hyperfiddle/electric_de_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2297,4 +2297,19 @@
% := []
% := [:foo]
(reset! !xs [])
% := []))
% := []))

(tests
(def !xs (atom ["apple.awt.UIElement" "clojure.basis" "file.encoding" "java.class.path"]))
(with ((l/single {}
(let [mp (e/mount-point)]
(e/cursor [k (e/diff-by identity (e/watch !xs))]
(e/join (mount-at mp (e/tag) k)))
(tap (e/as-vec (e/join mp)))))
tap tap)
% := []
% := ["apple.awt.UIElement" "clojure.basis" "file.encoding" "java.class.path"]
(reset! !xs ["clojure.basis" "file.encoding" "java.class.path"])
% := ["clojure.basis" "file.encoding" "java.class.path"]
(reset! !xs ["apple.awt.UIElement" "clojure.basis" "file.encoding" "java.class.path"])
% := ["apple.awt.UIElement" "clojure.basis" "file.encoding" "java.class.path"]))

0 comments on commit d6492a5

Please sign in to comment.