mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
In this refactor, we extract two functions in unread.js. Which one to use depends on whether res has already been fetched or not. This also adds node tests to maintain coverage of unread.js. Tweaked by tabbott for cleaner variable names and tests.