diff --git a/project.clj b/project.clj index ce2186e..8ad49f7 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject motiva/sqs-utils "0.2.0-SNAPSHOT" +(defproject motiva/sqs-utils "0.2.0" :description "Higher level SQS utilities for use in Motiva products" :url "https://github.com/Motiva-AI/sqs-utils" :license {:name "Proprietary" :url "https://motiva.ai"} @@ -27,7 +27,7 @@ :plugins [[s3-wagon-private "1.3.1"] [test2junit "1.3.3"] - [lein-eftest "0.5.1"] + [lein-eftest "0.5.2"] [lein-codox "0.10.3"] [lein-environ "1.1.0"]] diff --git a/test/sqs_utils/serde_test.clj b/test/sqs_utils/serde_test.clj new file mode 100644 index 0000000..98a5b51 --- /dev/null +++ b/test/sqs_utils/serde_test.clj @@ -0,0 +1,14 @@ +(ns sqs-utils.serde-test + (:require [sqs-utils.serde :as serde] + [clojure.test :refer :all] + [clj-time.core :as t])) + +(deftest roundtrip-transit-test + (testing "Basic map" + (let [coll {:testing 1}] + (is (= coll + (serde/transit-read (serde/transit-write coll)))))) + (testing "With Date type" + (let [coll {:timestamp (t/now)}] + (is (= coll + (serde/transit-read (serde/transit-write coll)))))))