Fork me on GitHub
#core-async
<
2021-09-26
>
tianshu13:09:44

how can I test functions implemented with core.async in ClojureScript. there's no <!! / >!!, and test function runs synchronously.

tianshu13:09:18

If I have a function like (defn foo [] (go 1))

lilactown20:09:08

cljs.test/async

lilactown20:09:23

like so:

(deftest foo-result
  (async done
    (go
      (is (= 1 (<! (foo))))
      (done))))