Fork me on GitHub
#figwheel-main
<
2022-01-20
>
Paul15:01:42

I’m trying to test something async using the async macro but in the test runner only one assertion is displayed per deftest. How can I fix this?

(deftest compile-expr-test
         (testing "expression without references"
                  (async done
                         (-> (compile-expr "(+ 1 2)")
                             (.then
                               (fn [expr]
                                 (is (= @expr 3))
                                 (done))))))

         (testing "expression without references"
                  (async done
                         (-> (compile-expr "(+ 1 100)")
                             (.then
                               (fn [expr]
                                 (is (= @expr 101))
                                 (done)))))))