diff options
author | marty hiatt <martianhiatus@riseup.net> | 2023-10-28 11:36:58 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2023-10-28 11:39:25 +0200 |
commit | b8d0c9b967fbc1e38e4012ad357a7f29c621acc1 (patch) | |
tree | ab3f5f4f697b6d3d5f330d2e33aa8fa118ac7778 /test/mastodon-http-tests.el | |
parent | 5f237982e53f0804f03f88d20eecab864ab575d3 (diff) |
triage: call cb on response. do-user-action-fun: check response data
this means the triage callback always needs to handle 1 arg.
Diffstat (limited to 'test/mastodon-http-tests.el')
-rw-r--r-- | test/mastodon-http-tests.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mastodon-http-tests.el b/test/mastodon-http-tests.el index b3a02bc..96f9304 100644 --- a/test/mastodon-http-tests.el +++ b/test/mastodon-http-tests.el @@ -62,11 +62,11 @@ Strict-Transport-Security: max-age=31536000 (let ((response-buffer (get-buffer-create "mastodon-http--triage-buffer"))) (with-current-buffer response-buffer - (erase-buffer) + (erase-buffer) (insert mastodon-http--example-200)) (should (equal (mastodon-http--triage response-buffer - (lambda () + (lambda (_) (message "success call"))) "success call")))) @@ -80,7 +80,7 @@ Strict-Transport-Security: max-age=31536000 (insert mastodon-http--example-400)) (should (equal (mastodon-http--triage response-buffer - (lambda () + (lambda (_) (message "success call"))) "Error 444: some unhappy complaint")))) |