aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-21 22:01:07 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-21 23:08:46 +0100
commit9b9431b130c1d8d1a03e445ae1f7803d2a511d70 (patch)
treeb90bd1f537db44e8e89dd2d21c903c5114eb94d5 /test
parentcba97969ea0c21acd8ddf5d5c531aaf252092e97 (diff)
params always in http.el, only ever send alists from elsewhere.
probably incomplete but mostly done.
Diffstat (limited to 'test')
-rw-r--r--test/mastodon-notifications-tests.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mastodon-notifications-tests.el b/test/mastodon-notifications-tests.el
index bc70e49..18fc757 100644
--- a/test/mastodon-notifications-tests.el
+++ b/test/mastodon-notifications-tests.el
@@ -187,11 +187,11 @@
"Ensure get request format for notifictions is accurate."
(let ((mastodon-instance-url "https://instance.url"))
(with-mock
- (mock (mastodon-http--get-json "https://instance.url/api/v1/notifications"))
- (mock (mastodon-profile--fetch-server-account-settings)
- => '(max_toot_chars 1312 privacy "public" display_name "Eugen" discoverable t locked :json-false bot :json-false sensitive :json-false language ""))
+ (mock (mastodon-http--get-json "https://instance.url/api/v1/notifications" nil))
+ (mock (mastodon-profile--fetch-server-account-settings)
+ => '(max_toot_chars 1312 privacy "public" display_name "Eugen" discoverable t locked :json-false bot :json-false sensitive :json-false language ""))
- (mastodon-notifications--get))))
+ (mastodon-notifications--get))))
(defun mastodon-notifications--test-type (fun sample)
"Test notification draw functions.