working on testing.
This commit is contained in:
@@ -12,7 +12,9 @@
|
|||||||
[clj-time.core :as time]
|
[clj-time.core :as time]
|
||||||
[clj-time.coerce :as coerce]))
|
[clj-time.coerce :as coerce]))
|
||||||
|
|
||||||
(def uri "datomic:sql://invoices?jdbc:postgresql://database:5432/datomic?user=datomic&password=datomic")
|
#_ (def uri "datomic:sql://invoices?jdbc:postgresql://database:5432/datomic?user=datomic&password=datomic")
|
||||||
|
|
||||||
|
(def uri "datomic:mem://datomic-transactor:4334/invoice")
|
||||||
|
|
||||||
(defn create-database []
|
(defn create-database []
|
||||||
(d/create-database uri))
|
(d/create-database uri))
|
||||||
|
|||||||
@@ -48,8 +48,8 @@
|
|||||||
:invoice-status/unpaid)]])})}]] )
|
:invoice-status/unpaid)]])})}]] )
|
||||||
|
|
||||||
(defn -main [& args]
|
(defn -main [& args]
|
||||||
(println "Creating database...")
|
(println "Creating database ..." uri)
|
||||||
(d/create-database uri)
|
(doto (d/create-database uri) println)
|
||||||
|
|
||||||
(let [
|
(let [
|
||||||
conn (d/connect uri)
|
conn (d/connect uri)
|
||||||
@@ -138,7 +138,9 @@
|
|||||||
}]
|
}]
|
||||||
(println "Conforming database...")
|
(println "Conforming database...")
|
||||||
(println (c/ensure-conforms conn norms-map))
|
(println (c/ensure-conforms conn norms-map))
|
||||||
(d/release conn)
|
(when (not (seq args))
|
||||||
|
(d/release conn))
|
||||||
(println "Done")))
|
(println "Done")))
|
||||||
#_(-main)
|
#_(-main false)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -264,7 +264,6 @@
|
|||||||
|
|
||||||
(defn test-results-modal []
|
(defn test-results-modal []
|
||||||
(when (:visible? @(re-frame/subscribe [::subs/modal-state ::test-results]))
|
(when (:visible? @(re-frame/subscribe [::subs/modal-state ::test-results]))
|
||||||
(println "TEST" @(re-frame/subscribe [::test-results]))
|
|
||||||
[modal {:title "Rule results"
|
[modal {:title "Rule results"
|
||||||
:hide-event [::events/modal-status ::test-results {:visible? false}]}
|
:hide-event [::events/modal-status ::test-results {:visible? false}]}
|
||||||
[:table.table.is-fullwidth.compact
|
[:table.table.is-fullwidth.compact
|
||||||
|
|||||||
Reference in New Issue
Block a user