diff options
Diffstat (limited to 'tests/test-wttrin--display-weather.el')
| -rw-r--r-- | tests/test-wttrin--display-weather.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test-wttrin--display-weather.el b/tests/test-wttrin--display-weather.el index b30c5b5..bca6a6c 100644 --- a/tests/test-wttrin--display-weather.el +++ b/tests/test-wttrin--display-weather.el @@ -243,5 +243,17 @@ not the lowercase version that wttr.in returns." (should (string-match-p "Wind: 5 km/h" contents))))) (test-wttrin--display-weather-teardown))) +;;; Line Wrapping + +(ert-deftest test-wttrin--display-weather-normal-truncate-lines-enabled () + "Weather buffer should not wrap lines — the ASCII art breaks if it does." + (test-wttrin--display-weather-setup) + (unwind-protect + (testutil-wttrin-with-clean-weather-buffer + (wttrin--display-weather "Paris" test-wttrin--display-weather-sample-raw-data) + (with-current-buffer "*wttr.in*" + (should truncate-lines))) + (test-wttrin--display-weather-teardown))) + (provide 'test-wttrin--display-weather) ;;; test-wttrin--display-weather.el ends here |
