figwheel-main

Paul 2022-01-20T15:46:42.017600Z

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)))))))