aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-tl-tests.el
diff options
context:
space:
mode:
authorJohnson Denen <johnson.denen@gmail.com>2017-05-18 13:31:01 -0400
committerGitHub <noreply@github.com>2017-05-18 13:31:01 -0400
commita9e595142eee69fe84f0ab06f7fde76cef27cdac (patch)
tree8cab32b1228283bdad86f426e346c5aa9ad41368 /test/mastodon-tl-tests.el
parent9ccc0e8cf74b938493753e2b64f95591f771de44 (diff)
parent8c841d2ad3d60997f7aea725da86b83ac80dcd61 (diff)
Merge pull request #135 from jdenen/develop
Release 0.7.0
Diffstat (limited to 'test/mastodon-tl-tests.el')
-rw-r--r--test/mastodon-tl-tests.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/mastodon-tl-tests.el b/test/mastodon-tl-tests.el
index a91d6d5..8c706f5 100644
--- a/test/mastodon-tl-tests.el
+++ b/test/mastodon-tl-tests.el
@@ -101,11 +101,11 @@
(let ((mastodon-instance-url "https://instance.url"))
(with-mock
(mock (mastodon-http--get-json "https://instance.url/api/v1/timelines/foo?max_id=12345"))
- (mastodon-tl--more-json "foo" 12345))))
+ (mastodon-tl--more-json "timelines/foo" 12345))))
(ert-deftest mastodon-tl--byline-regular ()
"Should format the regular toot correctly."
- (let ((mastodon-media-show-avatars-p nil)
+ (let ((mastodon-tl--show-avatars-p nil)
(timestamp (cdr (assoc 'created_at mastodon-tl-test-base-toot))))
(with-mock
(mock (date-to-time timestamp) => '(22782 21551))
@@ -119,7 +119,7 @@
(ert-deftest mastodon-tl--byline-regular-with-avatar ()
"Should format the regular toot correctly."
- (let ((mastodon-media-show-avatars-p t)
+ (let ((mastodon-tl--show-avatars-p t)
(timestamp (cdr (assoc 'created_at mastodon-tl-test-base-toot))))
(with-mock
(stub create-image => '(image "fake data"))
@@ -134,7 +134,7 @@
(ert-deftest mastodon-tl--byline-boosted ()
"Should format the boosted toot correctly."
- (let* ((mastodon-media-show-avatars-p nil)
+ (let* ((mastodon-tl--show-avatars-p nil)
(toot (cons '(reblogged . t) mastodon-tl-test-base-toot))
(timestamp (cdr (assoc 'created_at toot))))
(with-mock
@@ -148,7 +148,7 @@
(ert-deftest mastodon-tl--byline-favorited ()
"Should format the favourited toot correctly."
- (let* ((mastodon-media-show-avatars-p nil)
+ (let* ((mastodon-tl--show-avatars-p nil)
(toot (cons '(favourited . t) mastodon-tl-test-base-toot))
(timestamp (cdr (assoc 'created_at toot))))
(with-mock
@@ -163,7 +163,7 @@
(ert-deftest mastodon-tl--byline-boosted/favorited ()
"Should format the boosted & favourited toot correctly."
- (let* ((mastodon-media-show-avatars-p nil)
+ (let* ((mastodon-tl--show-avatars-p nil)
(toot `((favourited . t) (reblogged . t) ,@mastodon-tl-test-base-toot))
(timestamp (cdr (assoc 'created_at toot))))
(with-mock
@@ -177,7 +177,7 @@
(ert-deftest mastodon-tl--byline-reblogged ()
"Should format the reblogged toot correctly."
- (let* ((mastodon-media-show-avatars-p nil)
+ (let* ((mastodon-tl--show-avatars-p nil)
(toot mastodon-tl-test-base-boosted-toot)
(original-toot (cdr (assoc 'reblog mastodon-tl-test-base-boosted-toot)))
(timestamp (cdr (assoc 'created_at toot)))
@@ -197,7 +197,7 @@
(ert-deftest mastodon-tl--byline-reblogged-with-avatars ()
"Should format the reblogged toot correctly."
- (let* ((mastodon-media-show-avatars-p t)
+ (let* ((mastodon-tl--show-avatars-p t)
(toot mastodon-tl-test-base-boosted-toot)
(original-toot (cdr (assoc 'reblog mastodon-tl-test-base-boosted-toot)))
(timestamp (cdr (assoc 'created_at toot)))
@@ -218,7 +218,7 @@
(ert-deftest mastodon-tl--byline-reblogged-boosted/favorited ()
"Should format the reblogged toot that was also boosted & favoritedcorrectly."
- (let* ((mastodon-media-show-avatars-p nil)
+ (let* ((mastodon-tl--show-avatars-p nil)
(toot `((favourited . t) (reblogged . t) ,@mastodon-tl-test-base-boosted-toot))
(original-toot (cdr (assoc 'reblog mastodon-tl-test-base-boosted-toot)))
(timestamp (cdr (assoc 'created_at toot)))