summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures/test-init.el2
-rw-r--r--tests/test-wttrin--mode-line-map.el2
-rw-r--r--tests/test-wttrin-ansi-color-rendering.el4
-rw-r--r--tests/test-wttrin-integration-with-debug.el2
-rw-r--r--tests/test-wttrin-smoke.el2
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/fixtures/test-init.el b/tests/fixtures/test-init.el
index 26e8395..c635887 100644
--- a/tests/fixtures/test-init.el
+++ b/tests/fixtures/test-init.el
@@ -8,7 +8,7 @@
;; Configure wttrin
(setq wttrin-default-locations '("Berkeley, CA" "New Orleans, LA"))
(setq wttrin-unit-system "m") ; Metric
-(setq wttrin-mode-line-favorite-location "Berkeley, CA")
+(setq wttrin-favorite-location "Berkeley, CA")
(setq wttrin-mode-line-startup-delay 0) ; No delay for tests
(setq wttrin-mode-line-refresh-interval 3600) ; 1 hour
diff --git a/tests/test-wttrin--mode-line-map.el b/tests/test-wttrin--mode-line-map.el
index ed227cf..7a1052e 100644
--- a/tests/test-wttrin--mode-line-map.el
+++ b/tests/test-wttrin--mode-line-map.el
@@ -64,7 +64,7 @@
"Test that mode-line display uses wttrin--mode-line-map after refactoring.
This test verifies the refactoring eliminated inline keymap construction."
;; Set up minimal mode-line state
- (let ((wttrin-mode-line-favorite-location "Test, CA")
+ (let ((wttrin-favorite-location "Test, CA")
(wttrin--mode-line-tooltip-data "Test weather"))
;; Update the mode-line display
(wttrin--mode-line-update-display "☀️")
diff --git a/tests/test-wttrin-ansi-color-rendering.el b/tests/test-wttrin-ansi-color-rendering.el
index 0945a2f..656971b 100644
--- a/tests/test-wttrin-ansi-color-rendering.el
+++ b/tests/test-wttrin-ansi-color-rendering.el
@@ -120,7 +120,7 @@ This reproduces the bug where mode-line click shows white text."
(let* ((location "Paris")
(cache-key (wttrin--make-cache-key location))
(now 1000.0)
- (wttrin-mode-line-favorite-location location))
+ (wttrin-favorite-location location))
;; Mock the async fetch to return ANSI-coded data
(cl-letf (((symbol-function 'float-time)
@@ -259,7 +259,7 @@ This is the exact user workflow that exposes the bug."
(unwind-protect
(let* ((location "Tokyo")
(now 1000.0)
- (wttrin-mode-line-favorite-location location)
+ (wttrin-favorite-location location)
(mode-line-fetch-count 0)
(main-fetch-count 0))
diff --git a/tests/test-wttrin-integration-with-debug.el b/tests/test-wttrin-integration-with-debug.el
index 4b122bf..0330bb3 100644
--- a/tests/test-wttrin-integration-with-debug.el
+++ b/tests/test-wttrin-integration-with-debug.el
@@ -43,7 +43,7 @@
;; Clear cache
(wttrin-clear-cache)
;; Set test configuration
- (setq wttrin-mode-line-favorite-location "Berkeley, CA")
+ (setq wttrin-favorite-location "Berkeley, CA")
(setq wttrin-mode-line-startup-delay 1) ; Minimum valid value
(setq wttrin-unit-system "m"))
diff --git a/tests/test-wttrin-smoke.el b/tests/test-wttrin-smoke.el
index acf7fd5..b3c7eee 100644
--- a/tests/test-wttrin-smoke.el
+++ b/tests/test-wttrin-smoke.el
@@ -71,7 +71,7 @@ This is a REQUIRED dependency - wttrin cannot function without it."
(should (boundp 'wttrin-unit-system))
(should (boundp 'wttrin-cache-ttl))
(should (boundp 'wttrin-cache-max-entries))
- (should (boundp 'wttrin-mode-line-favorite-location))
+ (should (boundp 'wttrin-favorite-location))
(should (boundp 'wttrin-mode-line-refresh-interval))
(should (boundp 'wttrin-mode-line-startup-delay)))