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

    Fix mastodon-tl--relative-time-description test
    
    * Time span less than 1 minute seems to show "just now" only.
---
 test/mastodon-tl-tests.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/mastodon-tl-tests.el b/test/mastodon-tl-tests.el
index 6329291273..e535032e65 100644
--- a/test/mastodon-tl-tests.el
+++ b/test/mastodon-tl-tests.el
@@ -235,8 +235,8 @@ Strict-Transport-Security: max-age=31536000
                   (mastodon-tl--relative-time-description timestamp)))
               (check (seconds expected)
                 (should (string= (format-seconds-since seconds) expected))))
-    (check 1 "1 sec ago")
-    (check 59 "59 secs ago")
+    (check 1 "just now")
+    (check 59 "just now")
     (check 60 "1 min ago")
     (check 89 "1 min ago")            ;; rounding down
     (check 91 "1 min ago") ;"2 minutes ago")             ;; rounding up

Reply via email to