diff options
author | mousebot <mousebot@riseup.net> | 2021-08-07 10:18:26 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-08-07 11:40:57 +0200 |
commit | 2bff9c7dfbdb71fab520e876df7f2a8fc864a30e (patch) | |
tree | 94df6d35d99004d13c2f3e443c2d12ac5f846db2 /test/mastodon-notifications-test.el | |
parent | f919763630dbc0fbc5ed86666bce380aa09562e6 (diff) |
fix tests to work with my changes: bylines + notifs async
Diffstat (limited to 'test/mastodon-notifications-test.el')
-rw-r--r-- | test/mastodon-notifications-test.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mastodon-notifications-test.el b/test/mastodon-notifications-test.el index ba08bd4..19b591d 100644 --- a/test/mastodon-notifications-test.el +++ b/test/mastodon-notifications-test.el @@ -185,7 +185,7 @@ "Ensure get request format for notifictions is accurate." (let ((mastodon-instance-url "https://instance.url")) (with-mock - (mock (mastodon-http--get-json "https://instance.url/api/v1/notifications")) + (mock (mastodon-http--get-json-async "https://instance.url/api/v1/notifications" 'mastodon-tl--init* "*mastodon-notifications*" "notifications" 'mastodon-notifications--timeline)) (mastodon-notifications--get)))) (defun mastodon-notifications--test-type (fun sample) @@ -205,9 +205,9 @@ notification to be tested." (mastodon-notifications--byline-concat "Mentioned")) (string= " Followed you" (mastodon-notifications--byline-concat "Followed")) - (string= " Favourited your status" + (string= " Favourited your status from" (mastodon-notifications--byline-concat "Favourited")) - (string= " Boosted your status" + (string= " Boosted your status from" (mastodon-notifications--byline-concat "Boosted"))))) |