diff options
author | mousebot <mousebot@riseup.net> | 2021-12-16 16:09:35 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-12-16 16:09:35 +0100 |
commit | c06776ba115c561ddb23fd9887aad1c19c5b960a (patch) | |
tree | b11357c0809f2a578541f09a1fa1bea8f031e7db /test/mastodon-http-tests.el | |
parent | dd9ef80d940655bb24958d3c48a86aad45cefa43 (diff) | |
parent | 7653aacf64214fdaf376f4a5b8c7327116da6a90 (diff) |
Merge branch 'develop' into echo-faves-in-thread
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 03d4f94..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 (mastodon-http--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"))) |