From 1e21b7cfb50b52d638e7a8638c449ca08a078c29 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 10 Feb 2024 11:11:59 +0100 Subject: [PATCH] Add test --- test/babashka/http_client_test.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/babashka/http_client_test.clj b/test/babashka/http_client_test.clj index cae02d9..7836a15 100644 --- a/test/babashka/http_client_test.clj +++ b/test/babashka/http_client_test.clj @@ -219,8 +219,10 @@ :code)))) (deftest url-encode-query-params-test - (is (= {"my query param?" "hello there"} - (-> (http/get "https://postman-echo.com/get" {:query-params {"my query param?" "hello there"}}) + (is (= {"my query param?" "hello there" + "q" "foo & bar"} + (-> (http/get "https://postman-echo.com/get" {:query-params {"my query param?" "hello there" + :q "foo & bar"}}) :body (json/parse-string) (get "args")))))