aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Osipov <dosipov@microsoft.com>2022-11-28 15:33:37 +0100
committerDmitry Osipov <dosipov@microsoft.com>2022-11-28 15:33:37 +0100
commit1e4a661df8b3e07847e9d368f41fa775bf3442a7 (patch)
treed8ecf24bf0ea610b336b7502c10aa93fb6cfe5d5 /test
parent119d0de0ec1e916fc14a083368ac32e488d1263b (diff)
Remove double white-space in the reply mode
When you start a reply (to a local user or federated), there's one extra white-space after the list of mentioned users: `@user1@host.local @user2@host.federated__` (the underscores represent white-spaces). This PR removes the extra space.
Diffstat (limited to 'test')
-rw-r--r--test/mastodon-toot-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mastodon-toot-tests.el b/test/mastodon-toot-tests.el
index b88510c..5d4ef03 100644
--- a/test/mastodon-toot-tests.el
+++ b/test/mastodon-toot-tests.el
@@ -68,7 +68,7 @@ Even the local name \"local\" gets a domain name added."
(mastodon-instance-url "https://local.social"))
(should (string=
(mastodon-toot--mentions mastodon-toot--multi-mention)
- "@local@local.social @federated@federated.social @federated@federated.cafe "))))
+ "@local@local.social @federated@federated.social @federated@federated.cafe"))))
(ert-deftest mastodon-toot--multi-mentions-with-name ()
"Should build a correct mention string omitting self.
@@ -80,7 +80,7 @@ mention string."
(mastodon-instance-url "https://local.social"))
(should (string=
(mastodon-toot--mentions mastodon-toot--multi-mention)
- "@federated@federated.social @federated@federated.cafe "))))
+ "@federated@federated.social @federated@federated.cafe"))))
(ert-deftest mastodon-toot--no-mention ()
"Should construct an empty mention string without mentions."