aboutsummaryrefslogtreecommitdiff
path: root/tests/test-dashboard-config-launchers.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-11-20 15:59:47 -0600
committerCraig Jennings <c@cjennings.net>2026-11-20 15:59:47 -0600
commit4df81e5e751cf50c45e1b82e694394ddcb133ada (patch)
tree269e7d0dc65bf71965adc73c55858b2b7ae2f068 /tests/test-dashboard-config-launchers.el
parent1e679c7193f55950849cf9b9d9ac41108db26b3f (diff)
downloaddotemacs-4df81e5e751cf50c45e1b82e694394ddcb133ada.tar.gz
dotemacs-4df81e5e751cf50c45e1b82e694394ddcb133ada.zip
refactor(telega): retire the Telegram client to the archive
I stopped using Telegram in Emacs, so the client goes to the archive. - The module and its tests moved to archive/. - The setup script and docker build files moved with them. - I dropped the init.el require and the make telega-image target. - The dashboard loses its Telegram launcher. Rows are now 5 4 2 2. - C-; T is free again.
Diffstat (limited to 'tests/test-dashboard-config-launchers.el')
-rw-r--r--tests/test-dashboard-config-launchers.el31
1 files changed, 15 insertions, 16 deletions
diff --git a/tests/test-dashboard-config-launchers.el b/tests/test-dashboard-config-launchers.el
index 76fbcc42..566c693a 100644
--- a/tests/test-dashboard-config-launchers.el
+++ b/tests/test-dashboard-config-launchers.el
@@ -25,24 +25,23 @@
(require 'dashboard-config)
-;; Telegram moved from "g" to "G" so "g" is free for dashboard refresh.
-;; Signal ("S") added as the 14th launcher.
-;; Weather ("w") added after Agenda as the 15th launcher (top-row daily glance).
-(defconst test-dash--keys '("c" "d" "t" "a" "w" "r" "b" "f" "m" "e" "i" "G" "s" "l"))
+;; "g" is dashboard refresh (the dired/magit convention), so no launcher takes it.
+;; Signal ("S") and Telegram ("G") left the table when their clients were
+;; retired to archive/. Weather ("w") sits after Agenda as a top-row daily glance.
+(defconst test-dash--keys '("c" "d" "t" "a" "w" "r" "b" "f" "m" "e" "i" "s" "l"))
;; ----------------------------- launcher table --------------------------------
(ert-deftest test-dashboard-launchers-keys-in-order ()
- "Normal: 14 launchers with the expected keys in display order.
-(Signal left the table when the signel client was retired to archive/.)"
- (should (= 14 (length cj/dashboard--launchers)))
+ "Normal: 13 launchers with the expected keys in display order."
+ (should (= 13 (length cj/dashboard--launchers)))
(should (equal test-dash--keys (mapcar (lambda (l) (nth 0 l)) cj/dashboard--launchers))))
(ert-deftest test-dashboard-launchers-labels-in-order ()
- "Normal: labels in display order (Telegram and Slack reordered so Slack sits
-next to Linear on the last navigator row)."
+ "Normal: labels in display order, with Slack next to Linear on the last
+navigator row."
(should (equal '("Code" "Files" "Terminal" "Agenda" "Weather" "Feeds" "Books"
- "Flashcards" "Music" "Email" "IRC" "Telegram" "Slack" "Linear")
+ "Flashcards" "Music" "Email" "IRC" "Slack" "Linear")
(mapcar (lambda (l) (nth 3 l)) cj/dashboard--launchers))))
(ert-deftest test-dashboard-row-sizes-cover-all-launchers ()
@@ -52,8 +51,8 @@ next to Linear on the last navigator row)."
;; --------------------------- navigator rows ----------------------------------
-(ert-deftest test-dashboard-navigator-rows-grouped-5-4-3-2 ()
- "Normal: navigator derives rows per `cj/dashboard--row-sizes' (5 4 3 2), with
+(ert-deftest test-dashboard-navigator-rows-grouped-5-4-2-2 ()
+ "Normal: navigator derives rows per `cj/dashboard--row-sizes' (5 4 2 2), with
Weather joining the top row and Slack and Linear pairing on the last row."
(cl-letf (((symbol-function 'nerd-icons-faicon) (lambda (n &rest _) (concat "I:" n)))
((symbol-function 'nerd-icons-devicon) (lambda (n &rest _) (concat "I:" n)))
@@ -63,7 +62,9 @@ Weather joining the top row and Slack and Linear pairing on the last row."
((symbol-function 'nerd-icons-wicon) (lambda (n &rest _) (concat "I:" n))))
(let ((rows (cj/dashboard--navigator-rows)))
(should (= 4 (length rows)))
- (should (equal '(5 4 3 2) (mapcar #'length rows)))
+ (should (equal '(5 4 2 2) (mapcar #'length rows)))
+ (should (equal '("Email" "IRC")
+ (mapcar (lambda (b) (nth 1 b)) (nth 2 rows))))
(should (equal '("Code" "Files" "Terminal" "Agenda" "Weather")
(mapcar (lambda (b) (nth 1 b)) (nth 0 rows))))
(should (equal '("Slack" "Linear")
@@ -99,7 +100,6 @@ Weather joining the top row and Slack and Linear pairing on the last row."
((symbol-function 'mu4e) (lambda (&rest _) (push 'email calls)))
((symbol-function 'cj/erc-switch-to-buffer-with-completion) (lambda (&rest _) (push 'irc calls)))
((symbol-function 'cj/slack-start) (lambda (&rest _) (push 'slack calls)))
- ((symbol-function 'cj/telega) (lambda (&rest _) (push 'tg calls)))
((symbol-function 'pearl-list-issues) (lambda (&rest _) (push 'linear calls)))
;; wttrin is invoked via `call-interactively', so the stub must be
;; a command -- a plain variadic lambda masked the real arity bug.
@@ -108,12 +108,11 @@ Weather joining the top row and Slack and Linear pairing on the last row."
(dolist (key test-dash--keys)
(call-interactively (keymap-lookup map key)))
(should (memq 'code calls))
- (should (memq 'tg calls))
(should (memq 'linear calls))
(should (memq 'm-toggle calls))
(should (memq 'm-load calls))
(should (memq 'weather calls))
- (should (= 15 (length calls)))))) ; 14 keys, Music fires two
+ (should (= 14 (length calls)))))) ; 13 keys, Music fires two
(provide 'test-dashboard-config-launchers)
;;; test-dashboard-config-launchers.el ends here