aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mastodon-http-tests.el7
1 files changed, 7 insertions, 0 deletions
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"))))