From f42d5e2666022c891f8561c24489bc52e9f4f642 Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Thu, 13 Apr 2017 08:59:34 -0400 Subject: Use synchronous calls for simpler JSON parsing --- test/mastodon-http-tests.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/mastodon-http-tests.el b/test/mastodon-http-tests.el index afc8fe3..55f6bf3 100644 --- a/test/mastodon-http-tests.el +++ b/test/mastodon-http-tests.el @@ -6,5 +6,6 @@ "Should make a `url-retrieve' of the given URL." (let ((callback-double (lambda () "double"))) (with-mock - (mock (url-retrieve "https://foo.bar/baz" 'callback-double)) - (mastodon-http--get "https://foo.bar/baz" 'callback-double)))) + (mock (url-retrieve-synchronously "https://foo.bar/baz")) + (mock (mastodon--access-token) => "test-token") + (mastodon-http--get "https://foo.bar/baz")))) -- cgit v1.2.3