mirror of https://github.com/zulip/zulip.git
44d67e40cf
We were not passing any arguments to needs_subscribe_warning when testing the function itself. This commit changes the code to pass the user-id and stream-id to needs_subscribe_warning. We also remove the stubs for get_by_user_id and is_user_subscribed and do these tests by calling the original functions, because passing the arguments (user-id and stream-id) only makes sense if we use original functions for them rather than stubs. |
||
---|---|---|
.. | ||
casper_lib | ||
casper_tests | ||
node_tests | ||
puppeteer_lib | ||
puppeteer_tests | ||
zjsunit | ||
.eslintrc.json | ||
run-casper |