diff --git a/test/dev/onionpancakes/hop/test_headers.clj b/test/dev/onionpancakes/hop/test_headers.clj index 639ad60..e943137 100644 --- a/test/dev/onionpancakes/hop/test_headers.clj +++ b/test/dev/onionpancakes/hop/test_headers.clj @@ -2,3 +2,7 @@ (:require [clojure.test :refer [deftest is are]] [dev.onionpancakes.hop.headers :as h])) +(deftest test-headers-to-map + (are [value expected] (= (h/to-map value) expected) + (h/from-map {}) {} + (h/from-map {"foo" ["bar"]}) {"foo" ["bar"]}))