diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-08-22 11:30:15 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-08-22 11:30:15 +0200 |
commit | 2275eb8eba8b5c7099e2c45962e20c8c6aa1006c (patch) | |
tree | 088ab8e39a913e43a260455d89d83440844b5149 /test/mastodon-tl-tests.el | |
parent | 83ee88313381ef337cc663be48dd485f0d6858a1 (diff) |
comment on some timestamp tests
Diffstat (limited to 'test/mastodon-tl-tests.el')
-rw-r--r-- | test/mastodon-tl-tests.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/mastodon-tl-tests.el b/test/mastodon-tl-tests.el index 4cf5382..6358a27 100644 --- a/test/mastodon-tl-tests.el +++ b/test/mastodon-tl-tests.el @@ -220,6 +220,8 @@ Strict-Transport-Security: max-age=31536000 '(("since_id" . "12345")))) (mastodon-tl--updated-json "timelines/foo" "12345")))) +;; broken by monnier's `mastodon-tl--human-duration', which uses "secs" rather +;; than "just now" (ert-deftest mastodon-tl--relative-time-description () "Should format relative time as expected" (cl-labels ((minutes (n) (* n 60)) @@ -536,7 +538,10 @@ Strict-Transport-Security: max-age=31536000 (should (equal '(22782 21551) (plist-get properties 'timestamp))) (should (string-equal ;;"7 minutes ago" ;; "7 mins ago" ;; not sure why its diff now - "7 years, 3 months ago" + + ;; FIXME: this value has become really relative so we will have to + ;; keep changing it! + "7 years, 4 months ago" (plist-get properties 'display))))))) (ert-deftest mastodon-tl--consider-timestamp-for-updates-no-active-callback () |