diff options
Diffstat (limited to 'tests/test-wttrin-geolocation-sentinel.el')
| -rw-r--r-- | tests/test-wttrin-geolocation-sentinel.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-wttrin-geolocation-sentinel.el b/tests/test-wttrin-geolocation-sentinel.el index 61d8997..169761b 100644 --- a/tests/test-wttrin-geolocation-sentinel.el +++ b/tests/test-wttrin-geolocation-sentinel.el @@ -102,7 +102,7 @@ through `wttrin--query-selection' (smoke test of the entry wrapper)." (unwind-protect (let ((captured nil)) (cl-letf (((symbol-function 'wttrin-query) - (lambda (loc) (setq captured loc)))) + (lambda (loc &rest _) (setq captured loc)))) (wttrin--query-selection "Paris")) (should (equal "Paris" captured))) (testutil-wttrin-teardown))) @@ -115,7 +115,7 @@ through `wttrin--query-selection' (smoke test of the entry wrapper)." (cl-letf (((symbol-function 'wttrin-geolocation-detect) (lambda (callback) (funcall callback "Austin, TX"))) ((symbol-function 'wttrin-query) - (lambda (loc &optional _address) (setq captured loc))) + (lambda (loc &rest _) (setq captured loc))) ((symbol-function 'message) (lambda (&rest _) nil))) (wttrin--query-selection wttrin--geolocation-sentinel)) (should (equal "Austin, TX" captured))) |
