From ab96a9b145d914541fafbb765b381f4d2bc880d7 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Mon, 5 Aug 2024 19:36:16 +0200 Subject: add concat url params test --- test/mastodon-http-tests.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/mastodon-http-tests.el') diff --git a/test/mastodon-http-tests.el b/test/mastodon-http-tests.el index 96f9304..9e0b413 100644 --- a/test/mastodon-http-tests.el +++ b/test/mastodon-http-tests.el @@ -98,3 +98,10 @@ Strict-Transport-Security: max-age=31536000 (should (equal (mastodon-http--build-array-params-alist param-str array) '(("poll[x][]" . "option") ("poll[x][]" . "option2")))))) + +(ert-deftest mastodon-http-concat-params-url () + "" + (let ((url "https://example.com") + (params '(("q" . "query")))) + (should (equal (mastodon-http--concat-params-to-url url params) + "https://example.com?q=query")))) -- cgit v1.2.3