0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00
penpot/test/uxbox/test_runner.cljs
Andrey Antukh b95c573fc2
Fix tests.
2016-04-16 11:02:58 +03:00

22 lines
469 B
Clojure

(ns uxbox.test-runner
(:require [cljs.test :as test]
[uxbox.state.shapes-tests]
[uxbox.util.geom-tests]))
(enable-console-print!)
(defn main
[]
(test/run-tests
(test/empty-env)
'uxbox.util.geom-tests
'uxbox.state.shapes-tests
))
(defmethod test/report [:cljs.test/default :end-run-tests]
[m]
(if (test/successful? m)
(set! (.-exitCode js/process) 0)
(set! (.-exitCode js/process) 1)))
(set! *main-cli-fn* main)