~miikka/clj-branca

047474d6fe9256f098cdce9ba97d6473fb37291b — Miikka Koskinen 2 years ago 6aa8b8b
test: fix an assertion that did not assert anything
1 files changed, 1 insertions(+), 1 deletions(-)

M test/clj_branca/core_test.clj
M test/clj_branca/core_test.clj => test/clj_branca/core_test.clj +1 -1
@@ 18,7 18,7 @@
        new-token (branca/encode +key+ (.getBytes "hello"))]
    (is (= 1234 (:timestamp (branca/decode* +key+ old-token nil))))
    (is (thrown-with-msg? clojure.lang.ExceptionInfo #"Expired token" (branca/decode +key+ old-token {:ttl 3600})))
    (is (.getBytes "hello") (branca/decode +key+ new-token {:ttl 3600}))))
    (is (= "hello" (String. (branca/decode +key+ new-token {:ttl 3600}))))))

(deftest failure-test
  (testing "malformed key throws"