Skip to content

Commit 45b34b3

Browse files
committed
added a test for checking with-meta and meta
1 parent 589ff25 commit 45b34b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/clj_http/test/headers.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
(is (= "eggs" (m2 "ham")))
6565
(is (= "nope" (get m2 "absent" "nope")))
6666
(is (= "baz" (:foo (merge (header-map :foo "bar")
67-
{"Foo" "baz"}))))))
67+
{"Foo" "baz"}))))
68+
(let [m-with-meta (with-meta m {:withmeta-test true})]
69+
(is (= (:withmeta-test (meta m-with-meta)) true)))))
6870

6971
(deftest test-empty
7072
(testing "an empty header-map is a header-map"

0 commit comments

Comments
 (0)