Przeglądaj źródła

Fix clj test so that it passes

roam-test was no longer clj compatible with dependence on text and date
namespaces. Added to CI to ensure clj tests continue to pass
Gabriel Horner 4 lat temu
rodzic
commit
24807eef17

+ 3 - 1
.github/workflows/build.yml

@@ -75,7 +75,9 @@ jobs:
       - name: Fetch yarn deps
         run: yarn cache clean && yarn install
 
-      - name: Run Clojure test
+      - name: Run ClojureScript test
         run: |
           yarn cljs:test
           node static/tests.js
+      - name: Run Clojure test
+        run: clj -Mtest-clj

+ 1 - 2
src/test/frontend/external/roam_test.cljc → src/test/frontend/external/roam_test.cljs

@@ -1,6 +1,5 @@
 (ns frontend.external.roam-test
-  (:require #?(:clj  [clojure.test :refer :all]
-               :cljs [cljs.test :refer [is deftest]])
+  (:require [cljs.test :refer [is deftest]]
             [frontend.external.roam :as roam]
             [frontend.external :refer [to-markdown-files]]))