diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-21 23:33:28 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-22 00:00:53 +0100 |
commit | 8b45a7a83de0747029b6cd1d1cf7628afef0ad6c (patch) | |
tree | c3ac28aeeb874d19b5884098712b34c4accfa596 /test/mastodon-profile-tests.el | |
parent | 9b9431b130c1d8d1a03e445ae1f7803d2a511d70 (diff) |
fix some tests due to params
Diffstat (limited to 'test/mastodon-profile-tests.el')
-rw-r--r-- | test/mastodon-profile-tests.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/mastodon-profile-tests.el b/test/mastodon-profile-tests.el index 3e238f1..f65661e 100644 --- a/test/mastodon-profile-tests.el +++ b/test/mastodon-profile-tests.el @@ -172,7 +172,8 @@ 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/v1/accounts/search" + '(("q" . "gargron")))) (let ((mastodon-instance-url "https://instance.url")) ;; We don't check anything from the return value. We only care @@ -182,7 +183,9 @@ The search will happen as if called without the \"@\"." (ert-deftest mastodon-profile--search-account-by-handle--filters-out-false-results () "Should ignore results that don't match the searched handle." (with-mock - (mock (mastodon-http--get-json *) + (mock (mastodon-http--get-json + "https://instance.url/api/v1/accounts/search" + '(("q" . "Gargron"))) => (vector ccc-profile-json gargron-profile-json)) @@ -197,7 +200,9 @@ The search will happen as if called without the \"@\"." TODO: We need to decide if this is actually desired or not." (with-mock - (mock (mastodon-http--get-json *) => (vector gargron-profile-json)) + (mock (mastodon-http--get-json * + '(("q" . "gargron"))) + => (vector gargron-profile-json)) (let ((mastodon-instance-url "https://instance.url")) (should |