zulip/frontend_tests/node_tests
Steve Howell 71ccb99531 node tests: Clean up pm_conversations.
* Hoist zrequire("people") to the top.
    * Add clear_for_testing() hook.
    * Add initialize_recents() helper.
2021-03-12 04:42:37 -05:00
..
lib display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
activity.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
alert_words.js node tests: Avoid intra-test leaks for alert_words. 2021-03-08 10:45:17 -05: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: Avoid intra-test leaks in buddy_data. 2021-03-08 10:45:17 -05:00
buddy_list.js node tests: Introduce mock_module helper. 2021-03-06 13:15:04 -05:00
channel.js channel: Sever dependency on reload. 2021-03-09 17:43:07 -08: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 node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05: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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
compose_actions.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
composebox_typeahead.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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 electron-related code. 2021-03-12 04:42:37 -05:00
dispatch_subs.js node tests: Tweak test() wrapper. 2021-03-12 04:42:37 -05:00
drafts.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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: Localize MockDate.set call for echo test. 2021-03-08 14:03:39 -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: Avoid test leaks in filter. 2021-03-08 14:03:39 -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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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: Clear data for message_store tests. 2021-03-10 07:07:34 -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 node tests: Clear data for narrow_state tests. 2021-03-10 07:07:34 -05:00
narrow_unread.js node tests: Clear state in narrow_unread test. 2021-03-10 07:07:34 -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 node tests: Clear data for peer_data tests. 2021-03-10 07:07:34 -05:00
people.js node tests: Avoid test leaks for people. 2021-03-08 13:06:52 -05:00
people_errors.js minor: Use override in people_errors. 2021-03-12 04:42:37 -05:00
pm_conversations.js node tests: Clean up pm_conversations. 2021-03-12 04:42:37 -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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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 minor: Don't export unread_topic_counter. 2021-03-10 07:07:34 -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 node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
search_suggestion.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
search_suggestion_legacy.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
spoilers.js zjquery: Remove bogus remove(). 2021-02-25 13:42:47 -05:00
stream_data.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
stream_edit.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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 node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
topic_list_data.js node tests: Clean up mock_module calls. 2021-03-07 09:35:58 -05:00
transmit.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
tutorial.js zjsunit: Add unmock_module function. 2021-03-10 07:07:34 -05:00
typeahead.js zjsunit: Remove rewiremock dependency. 2021-03-06 11:10:57 -05:00
typeahead_helper.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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 node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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. Use clean data for unread tests. 2021-03-10 07:07:34 -05:00
upgrade.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -05:00
upload.js node tests: Eliminate many __Rewire__ calls. 2021-03-07 11:19:33 -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 node tests: Clean up robust_uri_decode. 2021-03-12 04:42:37 -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