aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-http-tests.el
diff options
context:
space:
mode:
authormouse bot <mousebot@riseup.net>2021-11-12 16:50:57 +0000
committermouse bot <mousebot@riseup.net>2021-11-12 16:50:57 +0000
commitc2ff442e47751dc32407b312c78098b8dd3466a7 (patch)
treef348916cbbe0919ff08a6e076d151a69e31b7b0e /test/mastodon-http-tests.el
parent1892014062229f3b68136495e53e90a51dfa58a1 (diff)
parenteb922191259721d6b1b232de41bbd43ebdb10d2f (diff)
Merge pull request 'Do a bit of work on tests' (#18) from h_d/mastodon.el:tests into develop
Reviewed-on: https://git.blast.noho.st/mouse/mastodon.el/pulls/18
Diffstat (limited to 'test/mastodon-http-tests.el')
-rw-r--r--test/mastodon-http-tests.el13
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")))