diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-12 16:28:48 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-12 16:28:48 +0100 |
commit | 4354b7dd3a6205018d3dc99cba547d5862da7889 (patch) | |
tree | 2a55790c3a1df624d7fb28d0882db1a16bacbd6d /test/mastodon-toot-tests.el | |
parent | 5ec596afc00a6bd9263ff64447df443815883967 (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.el | 11 |
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." |