Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
leonoel committed Aug 23, 2024
1 parent ea663cd commit 8e7f5dd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/hyperfiddle/electric_de_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2265,11 +2265,11 @@
)

(tests "conditional work-skipping"
(def !test (atom nil))
(with ((l/local {}
(when-not (e/watch !test)
(tap :mount)))
tap tap)
% := :mount
(reset! !test false)
% := ::rcf/timeout))
(let [!x (atom 0)]
(with ((l/local {}
(when (e/watch !x)
(tap :mount)))
tap tap)
% := :mount
(swap! !x inc)
% := ::rcf/timeout)))

0 comments on commit 8e7f5dd

Please sign in to comment.