zulip/frontend_tests/node_tests
Steve Howell 87f5c22593 Simplify how we find the current user's emoji reactions.
This adds the current_user_has_reacted_to_emoji() helper.

This new helper is easier to use and slightly more efficient
than calling get_user_list_for_message_reaction() and then
indexOf().

This also replaces one call to get_user_list_for_message_reaction()
with a list of user_ids that we already had locally.

The node tests were improved a bit here, including a minor
whitespace fixup.
2017-05-11 09:39:17 -07:00
..
activity.js home.py: move people_list as realm_users to register_ret. 2017-04-28 21:33:33 -07:00
alert_words.js refactor: Remove last uses of page_params.email in JS code. 2017-01-21 21:45:12 -08:00
bot_data.js home.py: move bot_list as realm_bots to register_ret. 2017-04-28 21:24:44 -07:00
compose.js compose: Distinguish get_message_type() from composing(). 2017-04-24 12:42:06 -07:00
compose_actions.js Break compose.js and drafts.js dependency. 2017-05-08 14:43:49 -07:00
compose_fade.js Use stream_id in recipient comparisons. 2017-02-26 16:18:02 -08:00
composebox_typeahead.js Add typeahead for syntax highlighting languages. 2017-04-28 17:22:59 -07:00
dict.js Add Dict.is_empty(). 2017-04-21 21:59:22 -07:00
dispatch.js Split out markdown.js from echo.js. 2017-05-09 11:06:10 -07:00
drafts.js compose: Distinguish get_message_type() from composing(). 2017-04-24 12:42:06 -07:00
filter.js home.py: move is_zephyr_mirror_realm as realm_is_zephyr_mirror_realm. 2017-04-28 21:12:16 -07:00
hashchange.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
hotkey.js Remove lightbox.is_open property. 2017-05-10 09:46:21 -07:00
i18n.js home.py: move user_profile full_name to register_ret. 2017-04-28 23:31:28 -07:00
markdown.js Split out markdown.js from echo.js. 2017-05-09 11:06:10 -07:00
message_edit.js node tests: Simplify i18n.js and avoid jquery leak. 2017-04-04 06:51:31 -07:00
message_list.js eslint: Update node tests to use new comma-dangle rules. 2016-12-03 15:00:24 -08:00
message_list_view.js Move small_avatar_url() to people.js. 2017-01-21 21:45:12 -08:00
message_store.js Fix PM list sort ordering during scrollback situations. 2017-04-13 12:13:20 -07:00
muting.js Remove references to page_params.domain. 2017-03-14 17:17:42 -07:00
narrow.js Extract narrow_state.js. 2017-04-25 09:57:32 -07:00
password.js Add node tests for password checks. 2017-01-10 04:55:41 -08:00
people.js Add people.get_realm_count(). 2017-04-04 15:57:10 -07:00
pm_list.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
reactions.js Simplify how we find the current user's emoji reactions. 2017-05-11 09:39:17 -07:00
rtl.js Add rtl.js library for detecting direction of text. 2017-04-22 11:25:54 -07:00
search_suggestion.js Extract narrow_state.js. 2017-04-25 09:57:32 -07:00
server_events.js alerts: Change sidebar alerts to be at top of the screen. 2017-04-03 16:22:05 -07:00
settings_bots.js Extract settings_bots.js. 2017-04-07 15:20:12 -07:00
stream_color.js eslint: change space-before-function-paren from warning to error. 2016-12-05 09:50:37 -08:00
stream_data.js home.py: move people_list as realm_users to register_ret. 2017-04-28 21:33:33 -07:00
stream_list.js Change argument type for stream_data.is_active(). 2017-04-28 07:39:52 -07:00
subs.js refactor: Pass in a full sub to sub_or_unsub(). 2017-03-05 11:55:09 -08:00
templates.js Only render one stream at a time for editing. 2017-05-11 08:46:52 -07:00
topic_generator.js Add topic_generator.get_next_topic(). 2017-04-21 21:59:22 -07:00
topic_list.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
typeahead_helper.js home.py: move is_zephyr_mirror_realm as realm_is_zephyr_mirror_realm. 2017-04-28 21:12:16 -07:00
typing_data.js Extract typing indicator inbound timing logic. 2017-03-22 08:20:21 -07:00
typing_status.js Revamp state tracking for outbound typing indicators. 2017-03-22 07:01:20 -07:00
unread.js Extract narrow_state.js. 2017-04-25 09:57:32 -07:00
user_events.js Extract settings_users.js. 2017-04-13 10:39:39 -07:00
util.js Compare recipients using to_user_ids to fix live updates. 2017-02-26 16:18:02 -08:00