From 5bbfebc92d6ff8e66e3072c453f6c3a44129cab2 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Mon, 5 Aug 2024 20:40:16 +0200 Subject: fix one search by handle test --- test/mastodon-profile-tests.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/mastodon-profile-tests.el b/test/mastodon-profile-tests.el index d187e2d..be7f50e 100644 --- a/test/mastodon-profile-tests.el +++ b/test/mastodon-profile-tests.el @@ -170,11 +170,10 @@ When formatting Gargon's state we want to see The search will happen as if called without the \"@\"." (with-mock - (mock (mastodon-http--get-json - "https://instance.url/api/v1/accounts/search" - '(("q" . "gargron")))) - + "https://instance.url/api/v2/search" + '(("q" . "gargron") + ("type" . "accounts")))) (let ((mastodon-instance-url "https://instance.url")) ;; We don't check anything from the return value. We only care ;; that the mocked fetch was called with the expected URL. -- cgit v1.2.3