zulip/frontend_tests/node_tests
Steve Howell eea78df688 node tests: Clean up mock_module calls.
This is a deceptively ugly diff.  It makes
the actual code way more tidy.

I basically inlined some calls to mock_module
and put some statements in lexical order.
2021-03-07 09:35:58 -05:00
..
lib events: Remove email field from update subscription events. 2021-03-01 14:52:06 -08:00
activity.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
alert_words.js node_tests: Don’t read from most deprecated global variables. 2021-02-10 07:40:22 -08:00
alert_words_ui.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
billing.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
billing_helpers.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
blueslip_stacktrace.js zjsunit: Deglobalize run_test. 2020-12-01 07:14:00 -05:00
bot_data.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
buddy_data.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
buddy_list.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
channel.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
color_data.js js: Convert static/js/color_data.js to ES6 module. 2021-02-28 14:23:00 -08:00
colorspace.js node_tests: Don’t read from most deprecated global variables. 2021-02-10 07:40:22 -08:00
common.js js: Convert static/js/common.js to ES6 module. 2021-02-28 14:23:00 -08:00
components.js js: Convert static/js/keydown_util.js to ES6 module. 2021-02-28 14:23:00 -08:00
compose.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
compose_actions.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
compose_fade.js node_tests: Consistently move set_global mocks before zrequire calls. 2021-02-26 07:55:53 -08:00
compose_pm_pill.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
compose_state.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
compose_ui.js node_tests: Consistently move set_global mocks before zrequire calls. 2021-02-26 07:55:53 -08:00
compose_video.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
composebox_typeahead.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
copy_and_paste.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
dispatch.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
dispatch_subs.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
drafts.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
dropdown_list_widget.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
echo.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
emoji.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
emoji_picker.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
fenced_code.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
fetch_status.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
filter.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
fold_dict.js zjsunit: Deglobalize run_test. 2020-12-01 07:14:00 -05:00
hash_util.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
hashchange.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
hotkey.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
i18n.js node_tests: Consistently move set_global mocks before zrequire calls. 2021-02-26 07:55:53 -08:00
input_pill.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
keydown_util.js zjquery: Make zjquery a singleton. 2021-02-21 17:34:55 -05:00
lazy_set.js eslint: Fix unicorn/no-array-callback-reference. 2021-01-25 14:53:19 -08:00
lightbox.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
list_cursor.js js: Convert static/js/list_cursor.js to ES6 module. 2021-02-23 20:36:01 -08:00
list_widget.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
markdown.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
markdown_katex.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
message_edit.js node_tests: Don’t read page_params from deprecated global variable. 2021-02-22 19:46:42 -08:00
message_events.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
message_fetch.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
message_flags.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
message_list.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
message_list_data.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
message_list_view.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
message_store.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
muting.js js: Convert static/js/timerender.js to ES6 module. 2021-02-28 14:23:00 -08:00
narrow.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
narrow_activate.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
narrow_local.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
narrow_state.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
narrow_unread.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
notifications.js node_tests: Remove unused rewiremocks. 2021-02-28 14:23:00 -08:00
password.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
peer_data.js js: Convert static/js/hash_util.js to ES6 module. 2021-02-28 14:23:00 -08:00
people.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
people_errors.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
pm_conversations.js zjsunit: Deglobalize run_test. 2020-12-01 07:14:00 -05:00
pm_list.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
poll_widget.js node tests: Inline return_true and return_false. 2021-02-26 14:11:42 -05:00
popovers.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
presence.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
reactions.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
recent_senders.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
recent_topics.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
rendered_markdown.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
rtl.js node tests: Directly test how we add/remove rtl class. 2021-03-05 12:57:20 -05:00
schema.js node_tests: Don’t read from most deprecated global variables. 2021-02-10 07:40:22 -08:00
scroll_util.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
search.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
search_legacy.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
search_pill.js js: Convert static/js/input_pill.js to ES6 module. 2021-03-02 17:06:35 -08:00
search_suggestion.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
search_suggestion_legacy.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
server_events.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
settings_bots.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
settings_data.js node_tests: Consistently move set_global mocks before zrequire calls. 2021-02-26 07:55:53 -08:00
settings_emoji.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
settings_muting.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
settings_org.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
settings_profile_fields.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
settings_user_groups.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
spoilers.js zjquery: Remove bogus remove(). 2021-02-25 13:42:47 -05:00
stream_data.js js: Convert static/js/hash_util.js to ES6 module. 2021-02-28 14:23:00 -08:00
stream_edit.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
stream_events.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
stream_list.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
stream_pill.js node_tests: Don’t read from most deprecated global variables. 2021-02-10 07:40:22 -08:00
stream_search.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
stream_sort.js zjsunit: Change override API to work with non-global modules. 2021-02-11 07:35:28 -05:00
stream_topic_history.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
submessage.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
subs.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
support.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
timerender.js node tests: Use array syntax more aggressively. 2021-02-23 09:15:36 -05:00
top_left_corner.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
topic_generator.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
topic_list_data.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
transmit.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
tutorial.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
typeahead.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
typeahead_helper.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
typing_data.js node_tests: Don’t read from most deprecated global variables. 2021-02-10 07:40:22 -08:00
typing_status.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
ui.js node_tests: Consistently move set_global mocks before zrequire calls. 2021-02-26 07:55:53 -08:00
unread.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
upgrade.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
upload.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
user_events.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
user_groups.js node_tests: Don’t read from most deprecated global variables. 2021-02-10 07:40:22 -08:00
user_pill.js node_tests: Consistently move set_global mocks before zrequire calls. 2021-02-26 07:55:53 -08:00
user_status.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
util.js zjquery: Make zjquery a singleton. 2021-02-21 17:34:55 -05:00
vdom.js node_tests: Don’t read from most deprecated global variables. 2021-02-10 07:40:22 -08:00
widgetize.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
zblueslip.js zjsunit: Deglobalize run_test. 2020-12-01 07:14:00 -05:00
zjquery.js zjquery: Prohibit extensions to $.fn. 2021-02-22 10:04:29 -05:00