aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-toot-tests.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-12 16:28:48 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-12 16:28:48 +0100
commit4354b7dd3a6205018d3dc99cba547d5862da7889 (patch)
tree2a55790c3a1df624d7fb28d0882db1a16bacbd6d /test/mastodon-toot-tests.el
parent5ec596afc00a6bd9263ff64447df443815883967 (diff)
hack fix -toot--kill test: set mastodon-toot-previous-window-config
Diffstat (limited to 'test/mastodon-toot-tests.el')
-rw-r--r--test/mastodon-toot-tests.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/mastodon-toot-tests.el b/test/mastodon-toot-tests.el
index 5b95cdc..39e0984 100644
--- a/test/mastodon-toot-tests.el
+++ b/test/mastodon-toot-tests.el
@@ -92,10 +92,13 @@ mention string."
;; TODO: test y-or-no-p with mastodon-toot--cancel
(ert-deftest mastodon-toot--kill ()
"Should kill the buffer when cancelling the toot."
- (with-mock
- (mock (kill-buffer-and-window))
- (mastodon-toot--kill)
- (mock-verify)))
+ (let ((mastodon-toot-previous-window-config
+ (list (current-window-configuration)
+ (point-marker))))
+ (with-mock
+ (mock (kill-buffer-and-window))
+ (mastodon-toot--kill)
+ (mock-verify))))
(ert-deftest mastodon-toot--own-toot-p-fail ()
"Should not return t if not own toot."