aboutsummaryrefslogtreecommitdiff
path: root/tests/test-chime-async-helpers.el
Commit message (Collapse)AuthorAgeFilesLines
* test: add unit tests for async result helpersCraig Jennings2026-04-221-0/+147
Eight tests in a new file covering Normal and Boundary cases for both new helpers. chime--record-async-failure increments the consecutive-failure counter, sets chime-modeline-string to the standard error tooltip, triggers the threshold warning when the counter hits chime-max-consecutive-failures, and leaves chime-modeline-string alone when chime-modeline-no-events-text is nil. chime--handle-async-success resets the counter from non-zero to zero, invokes the callback with the events list, works with an empty events list, and is a no-op on the counter when it already starts at zero.