From 2bff9c7dfbdb71fab520e876df7f2a8fc864a30e Mon Sep 17 00:00:00 2001 From: mousebot Date: Sat, 7 Aug 2021 10:18:26 +0200 Subject: fix tests to work with my changes: bylines + notifs async --- test/mastodon-notifications-test.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/mastodon-notifications-test.el') 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"))))) -- cgit v1.2.3