Skip to content

Commit

Permalink
added tests for headers to-map
Browse files Browse the repository at this point in the history
  • Loading branch information
onionpancakes committed Oct 15, 2023
1 parent 5247de3 commit 8a85aa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/dev/onionpancakes/hop/test_headers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}))

0 comments on commit 8a85aa8

Please sign in to comment.