diff options
| author | mousebot <mousebot@riseup.net> | 2021-12-16 15:19:49 +0100 | 
|---|---|---|
| committer | mousebot <mousebot@riseup.net> | 2021-12-16 15:19:49 +0100 | 
| commit | d451912722766482371ed491de415f1647cf8b9d (patch) | |
| tree | 9e4752f2cbd48a216f46a5efb536cbdc55b2fcae /test/mastodon-http-tests.el | |
| parent | af72d4943ad942712ec74a387e79fb1d53e6bee8 (diff) | |
| parent | a3dd830e4e7b5eddfc21975506fe5461a36c2a89 (diff) | |
Merge branch 'develop' into notify-when-post
Diffstat (limited to 'test/mastodon-http-tests.el')
| -rw-r--r-- | test/mastodon-http-tests.el | 13 | 
1 files changed, 7 insertions, 6 deletions
| diff --git a/test/mastodon-http-tests.el b/test/mastodon-http-tests.el index 972cedb..00e1f41 100644 --- a/test/mastodon-http-tests.el +++ b/test/mastodon-http-tests.el @@ -1,9 +1,10 @@ +;;; mastodon-http-test.el --- Tests for mastodon-http.el  -*- lexical-binding: nil -*- +  (require 'el-mock) -(ert-deftest mastodon-http:get:retrieves-endpoint () +(ert-deftest mastodon-http--get-retrieves-endpoint ()    "Should make a `url-retrieve' of the given URL." -  (let ((callback-double (lambda () "double"))) -    (with-mock -      (mock (url-retrieve-synchronously "https://foo.bar/baz")) -      (mock (mastodon-auth--access-token) => "test-token") -      (mastodon-http--get "https://foo.bar/baz")))) +  (with-mock +    (mock (mastodon-http--url-retrieve-synchronously "https://foo.bar/baz")) +    (mock (mastodon-auth--access-token) => "test-token") +    (mastodon-http--get "https://foo.bar/baz"))) | 
