mirror of https://github.com/status-im/reagent.git
Really make advanced mode tests work
This commit is contained in:
parent
4c8f08c646
commit
723a1aa379
|
@ -4,5 +4,9 @@
|
|||
|
||||
(site/start! nil)
|
||||
|
||||
(when (exists? js/runtests)
|
||||
(js/runtests.run-tests))
|
||||
(defn do-test []
|
||||
(when (exists? js/runtests)
|
||||
(js/runtests.run-tests)))
|
||||
|
||||
;; Wait for tests to be defined
|
||||
(r/next-tick do-test)
|
||||
|
|
|
@ -1,18 +1,15 @@
|
|||
|
||||
(ns runtests
|
||||
(:require [demo]
|
||||
[testreagent]
|
||||
(:require [testreagent]
|
||||
[testcursor]
|
||||
[testinterop]
|
||||
[testratom]
|
||||
[cemerick.cljs.test :as t]
|
||||
[reagent.core :as reagent :refer [atom]]
|
||||
[reagent.interop :refer-macros [.' .!]]
|
||||
[reagent.debug :refer-macros [dbg println]]
|
||||
;; [demo :as demo]
|
||||
))
|
||||
[reagent.debug :refer-macros [dbg println]]))
|
||||
|
||||
;; (enable-console-print!)
|
||||
(enable-console-print!)
|
||||
|
||||
(def test-results (atom nil))
|
||||
|
||||
|
@ -40,15 +37,6 @@
|
|||
[test-output])
|
||||
[:div {:style test-box} "testing"])))
|
||||
|
||||
(defn test-demo []
|
||||
[:div
|
||||
[test-output]
|
||||
[demo/demo]])
|
||||
|
||||
(defn ^:export mounttests []
|
||||
(reagent/render-component (fn [] [test-demo])
|
||||
(.-body js/document)))
|
||||
|
||||
(defn ^:export run-all-tests []
|
||||
(println "-----------------------------------------")
|
||||
(try
|
||||
|
|
Loading…
Reference in New Issue