(ns uxbox.tests.test-txlog
  "A txlog and services abstraction generic tests."
  (:require [clojure.test :as t]
            [uxbox.tests.helpers :as th]))

(t/use-fixtures :each th/database-reset)

(t/deftest experiment-spec1
  (t/is (= 1 1)))

(t/deftest experiment-spec2
  (t/is (= 1 1)))

(ns uxbox.tests.test-txlog
  "A txlog and services abstraction generic tests."
  (:require [clojure.test :as t]
            [promesa.core :as p]
            [uxbox.services.core :as usc]
            [uxbox.services :as usv]
            [uxbox.tests.helpers :as th]))

(t/use-fixtures :each th/database-reset)

(defmethod usc/-novelty ::testype1
  [data]
  true)

(t/deftest txlog-spec1
  (let [data {:type ::testype1 :foo 1 :bar "baz"}
        response (usv/novelty data)]
    (t/is (p/promise? response))
    (t/is (= 1 @response))))

Add first test for services and transaction log.
Add first test for services and transaction log.

uxbox/uxbox-backend,uxbox/uxbox-backend