Skip to content

Commit

Permalink
Merge pull request #1 from Motiva-AI/j0ni/serde-test
Browse files Browse the repository at this point in the history
Add a test I forgot about from backend-common
  • Loading branch information
j0ni authored Jul 3, 2018
2 parents 02e47e8 + d209e98 commit be7e2f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -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"}
Expand Down Expand Up @@ -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"]]

Expand Down
14 changes: 14 additions & 0 deletions test/sqs_utils/serde_test.clj
Original file line number Diff line number Diff line change
@@ -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)))))))

0 comments on commit be7e2f0

Please sign in to comment.