branch: elpa/mastodon
commit 43440afb2f8ca6ea6b47ca0ff1872ddebbad1551
Author: Xiyue Deng <manp...@gmail.com>
Commit: Xiyue Deng <manp...@gmail.com>

    Fix mastodon-notifications--test-byline-{concat,action-str}
    
    * Rename test based on function rename since
    94ea642a1a565f0a8c56d1ad541965b905411459.
    * Also update test text based on the new function behavior.
---
 test/mastodon-notifications-tests.el | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/test/mastodon-notifications-tests.el 
b/test/mastodon-notifications-tests.el
index 2517c9d7bf..127426ae4a 100644
--- a/test/mastodon-notifications-tests.el
+++ b/test/mastodon-notifications-tests.el
@@ -202,18 +202,18 @@ notification to be tested."
     (with-temp-buffer (funcall fun sample)
                       (buffer-substring-no-properties (point-min) 
(point-max)))))
 
-(ert-deftest mastodon-notifications--test-byline-concat ()
+(ert-deftest mastodon-notifications--test-byline-action-str ()
   "Ensure proper suffix is appended to action."
   (should (and
-           (string= " Mentioned you"
-                    (mastodon-notifications--byline-concat "Mentioned"))
-           (string= " Followed you"
-                    (mastodon-notifications--byline-concat "Followed"))
-           (string= " Favourited your status from"
-                    (mastodon-notifications--byline-concat "Favourited"))
-           (string= " Boosted your status from"
-                    (mastodon-notifications--byline-concat "Boosted"))
-           (string= " Posted a post"
-                    (mastodon-notifications--byline-concat "Posted")))))
+           (string= " Mentioned you\n"
+                    (mastodon-notifications--byline-action-str "Mentioned"))
+           (string= " Followed you\n"
+                    (mastodon-notifications--byline-action-str "Followed"))
+           (string= " Favourited your post\n"
+                    (mastodon-notifications--byline-action-str "Favourited"))
+           (string= " Boosted your post\n"
+                    (mastodon-notifications--byline-action-str "Boosted"))
+           (string= " Posted a post\n"
+                    (mastodon-notifications--byline-action-str "Posted")))))
 
 

Reply via email to