zulip/static/js
Steve Howell aedf1660f8 dispatch tests: Make realm_emoji test more robust.
The main thing here is that we check that the
actual data got put into our data structures.

(In general we want to move away from stubbing
data modules; any place where we stub data modules
is a relic of earlier days, where we were just
trying to set the bar for 100% line coverage,
even though some of the original coverage was
quite shallow.)

I also use real stubs instead of noops for
the calls out to UI-oriented modules.

In passing I tweak some comments in the actual
dispatch code.
2020-07-26 16:07:17 -07:00
..
analytics js: Replace deprecated jQuery event handler shorthand. 2020-07-21 12:01:26 -07:00
billing js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
bundles mobile sharing: Move fenced_code.js to shared/js. 2020-07-24 12:57:52 -07:00
portico team: Include users without an associated GitHub profile. 2020-07-24 10:51:47 -07:00
stats js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
types js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
activity.js user_search: Convert user_search to an ES6 class UserSearch. 2020-07-24 16:50:23 -07:00
admin.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
alert_words_ui.js js: Replace deprecated $.trim method. 2020-07-22 12:20:23 -07:00
alert_words.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
archive.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
attachments_ui.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
avatar.js upload widget: Rename image upload widget delete text CSS class. 2020-07-21 16:19:21 -07:00
blueslip_stacktrace.ts eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
blueslip.js blueslip: Convert Logger to an ES6 class. 2020-07-24 16:40:42 -07:00
bot_data.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
buddy_data.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
buddy_list.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
channel.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
click_handlers.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
color_data.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
colorspace.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
common.js js: Replace deprecated jQuery event trigger shorthand. 2020-07-21 12:01:26 -07:00
components.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
compose_actions.js js: Fix new import/order errors. 2020-07-24 13:04:07 -07:00
compose_fade.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
compose_pm_pill.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
compose_state.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
compose_ui.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
compose.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
composebox_typeahead.js composebox_typeahead: Remove deprecated workaround. 2020-07-24 15:31:26 -07:00
condense.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
confirm_dialog.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
copy_and_paste.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
csrf.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
debug.js debug: Convert IterationProfiler to an ES6 class. 2020-07-24 16:32:53 -07:00
drafts.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
dropdown_list_widget.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
echo.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
emoji_picker.js refactor: Have emoji_picker pull from emoji. 2020-07-26 16:07:17 -07:00
emoji.js emoji: Promote blueslip.error to caller. 2020-07-26 16:07:17 -07:00
emojisets.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
favicon.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
feature_flags.js minor: Update comment in feature_flags. 2020-05-20 13:51:54 -07:00
feedback_widget.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
fetch_status.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
filter.js filter: Convert Filter to an ES6 class. 2020-07-24 16:40:42 -07:00
floating_recipient_bar.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
fold_dict.ts js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
gear_menu.js js: Replace deprecated jQuery event trigger shorthand. 2020-07-21 12:01:26 -07:00
global.d.ts user_search: Convert user_search to an ES6 class UserSearch. 2020-07-24 16:50:23 -07:00
hash_util.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
hashchange.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
hbs.d.ts blueslip: Make stack trace more readable. 2019-10-31 13:47:54 -07:00
hotkey.js js: Fix incorrectly converted blur, click, focus method calls. 2020-07-21 20:01:57 -07:00
hotspots.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
huddle_data.js eslint: Enable prefer-arrow-callback. 2020-07-03 16:55:50 -07:00
i18n.js js: Remove extra consecutive spaces. 2020-07-17 14:31:25 -07:00
info_overlay.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
input_pill.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
invite.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
keydown_util.js js: Replace deprecated jQuery event handler shorthand. 2020-07-21 12:01:26 -07:00
lazy_set.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
lightbox_canvas.js lightbox_canvas: Remove old-style window.onload handler. 2020-07-24 16:32:53 -07:00
lightbox.js js: Replace deprecated jQuery event trigger shorthand. 2020-07-21 12:01:26 -07:00
list_cursor.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
list_render.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
list_util.js js: Replace deprecated jQuery event trigger shorthand. 2020-07-21 12:01:26 -07:00
loading.js ui: Fix loading spinner glitch. 2020-07-20 11:00:37 -07:00
local_message.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
localstorage.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
markdown_config.js markdown: Add helper configuration for mobile. 2020-02-18 16:13:38 -08:00
markdown.js js: Fix new import/order errors. 2020-07-24 13:04:07 -07:00
message_edit_history.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
message_edit.js js: Access ‘disabled’ as a property, not an attribute. 2020-07-22 12:20:23 -07:00
message_events.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
message_fetch.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
message_flags.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
message_list_data.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
message_list_view.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
message_list.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
message_live_update.js js: Automatically convert _.each to for…of. 2020-02-07 14:09:47 -08:00
message_scroll.js js: Replace deprecated jQuery event handler shorthand. 2020-07-21 12:01:26 -07:00
message_store.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
message_util.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
message_viewport.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
muting_ui.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
muting.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
narrow_state.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
narrow.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
navigate.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
night_mode.js settings: Add automatic theme detection feature. 2020-06-21 01:09:01 -07:00
notifications.js notifications: Fix incorrectly converted focus method call. 2020-07-24 14:48:47 -07:00
overlays.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
padded_widget.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
page_params.js static: Serve webpack bundles from the root domain. 2020-04-10 00:48:02 -07:00
panels.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
people.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
pm_conversations.js pm_conversations: Convert recent to an ES6 class RecentPrivateMessages. 2020-07-24 16:50:23 -07:00
pm_list_dom.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
pm_list.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
poll_widget.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
popovers.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
presence.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
reactions.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
ready.js templates: Make the Loading… message more robust. 2019-09-20 10:34:44 -07:00
realm_icon.js upload widget: Rename image upload widget delete button CSS class. 2020-07-21 16:19:20 -07:00
realm_logo.js upload widget: Rename image upload widget delete button CSS class. 2020-07-21 16:19:20 -07:00
recent_senders.js recent_topics: Skip non-stream messages in update_topics_of_message_ids. 2020-07-24 10:58:21 -07:00
recent_topics.js recent_topics: Skip non-stream messages in update_topics_of_message_ids. 2020-07-24 10:58:21 -07:00
reload_state.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
reload.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
reminder.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
rendered_markdown.js js: Replace deprecated $.trim method. 2020-07-22 12:20:23 -07:00
resize.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
rows.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
rtl.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
schema.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
scroll_bar.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
scroll_util.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
search_pill_widget.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
search_pill.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
search_suggestion.js search_suggestion: Convert make_attacher to an ES6 class Attacher. 2020-07-24 16:56:28 -07:00
search_util.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
search.js search: Replace deprecated jQuery event trigger shorthand. 2020-07-22 12:20:23 -07:00
sent_messages.js sent_messages: Convert message_state to an ES6 class MessageState. 2020-07-24 16:56:28 -07:00
server_events_dispatch.js dispatch tests: Make realm_emoji test more robust. 2020-07-26 16:07:17 -07:00
server_events.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
settings_account.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
settings_bots.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
settings_config.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
settings_data.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
settings_display.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
settings_emoji.js emoji refactor: Let emoji.js own the data. 2020-07-24 12:57:52 -07:00
settings_exports.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
settings_invites.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
settings_linkifiers.js js: Access ‘disabled’ as a property, not an attribute. 2020-07-22 12:20:23 -07:00
settings_muting.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
settings_notifications.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
settings_org.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
settings_panel_menu.js js: Replace deprecated jQuery event trigger shorthand. 2020-07-21 12:01:26 -07:00
settings_profile_fields.js js: Access ‘disabled’ as a property, not an attribute. 2020-07-22 12:20:23 -07:00
settings_sections.js js: Indent case clauses in switch statements. 2020-07-17 14:31:25 -07:00
settings_streams.js js: Access ‘disabled’ as a property, not an attribute. 2020-07-22 12:20:23 -07:00
settings_toggle.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
settings_ui.js js: Access ‘disabled’ as a property, not an attribute. 2020-07-22 12:20:23 -07:00
settings_user_groups.js minor: Refactor set_up_typeahead_on_pills function interface. 2020-07-22 17:00:34 -07:00
settings_users.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
settings.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
setup.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
spoilers.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
starred_messages.js js: Automatically convert _.each to for…of. 2020-02-07 14:09:47 -08:00
stream_color.js js: Replace deprecated $.trim method. 2020-07-22 12:20:23 -07:00
stream_create.js stream_create: Convert stream_name_error to an ES6 class. 2020-07-24 16:50:23 -07:00
stream_data.js stream_data: Convert BinaryDict to an ES6 class. 2020-07-24 16:50:23 -07:00
stream_edit.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
stream_events.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
stream_list.js stream_list: Convert build_stream_sidebar_row to an ES6 class. 2020-07-24 16:50:23 -07:00
stream_muting.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
stream_popover.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
stream_sort.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
stream_topic_history.js stream_topic_history: Convert per_stream_history to an ES6 class. 2020-07-24 16:50:23 -07:00
stream_ui_updates.js js: Access ‘disabled’ as a property, not an attribute. 2020-07-22 12:20:23 -07:00
submessage.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
subs.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
tab_bar.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
templates.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
tictactoe_widget.js tictactoe_widget: Convert tictactoe_data_holder to an ES6 class. 2020-07-24 16:58:22 -07:00
timerender.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
todo_widget.js todo_widget: Convert task_data_holder to an ES6 class TaskData. 2020-07-24 16:58:22 -07:00
top_left_corner.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
topic_generator.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
topic_list_data.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
topic_list.js topic_list: Convert widget to an ES6 class TopicListWidget. 2020-07-24 16:58:22 -07:00
topic_zoom.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
transmit.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
tslint.json lint: Format JSON files with Prettier. 2020-07-24 09:42:56 -07:00
tutorial.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
typeahead_helper.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
typing_data.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
typing_events.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
typing.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
ui_init.js emoji: Remove dependence on page_params. 2020-07-24 12:57:52 -07:00
ui_report.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
ui_util.js ui_util: Fix incorrectly converted focus method call. 2020-07-21 18:26:05 -07:00
ui.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
unread_ops.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
unread_ui.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
unread.js unread: Convert unread_topic_counter to an ES6 class UnreadTopicCounter. 2020-07-24 16:50:23 -07:00
upload_widget.js upload widget: Rename image upload widget delete button CSS class. 2020-07-21 16:19:20 -07:00
upload.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
user_events.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
user_groups.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
user_pill.js minor: Refactor set_up_typeahead_on_pills function interface. 2020-07-22 17:00:34 -07:00
user_search.js user_search: Convert user_search to an ES6 class UserSearch. 2020-07-24 16:50:23 -07:00
user_status_ui.js js: Access ‘disabled’ as a property, not an attribute. 2020-07-22 12:20:23 -07:00
user_status.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
util.js util: Convert CachedValue to an ES6 class. 2020-07-24 16:40:42 -07:00
vdom.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
widgetize.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
zcommand.js js: Use ES6 object literal shorthand syntax. 2020-07-21 12:42:22 -07:00
zform.js js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
zulip.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00