diff options
author | mousebot <mousebot@riseup.net> | 2021-12-17 14:26:03 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-12-17 14:26:03 +0100 |
commit | bb9e8ab828cf249ce8fd23a47fe4e75ee9ab61c7 (patch) | |
tree | 76be863aeb318606a195a5fe913fd6c15f825ab7 /test/mastodon-http-tests.el | |
parent | 2d8337af15b2b0c988df13cea4cb31c944b21aac (diff) | |
parent | c65c6231f29929b6e39ebcc9b866d492519ae19b (diff) |
Merge branch 'develop'
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"))) |