zulip/frontend_tests/node_tests
Steve Howell ab6f4af33a tests: Use tricky server data in unit tests.
The server may send us ids in the order
[11, 2], instead of [2, 11].  We don't want
to rely on server behavior, regardless, for
the sort.

Our tests now show we process that data.

The current code is is still buggy and causes
us to show the same huddle two different times
for situations where the lexical sort doesn't
match the numerical sort.

This happens on czo often, where Tim is user
7, and his id sorts lexically after ids like
58, 622, 4444, etc.
2020-01-02 11:59:58 -08:00
..
.eslintrc.json lint: Add JS indentation eslint rules for node_tests. 2018-05-06 19:35:18 -07:00
activity.js compose_state: Rename compost_state.recipient to be about PMs only. 2019-12-02 08:53:55 -08:00
alert_words.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
alert_words_ui.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
billing.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
billing_helpers.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
blueslip_stacktrace.js blueslip: Make stack trace more readable. 2019-10-31 13:47:54 -07:00
bot_data.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
buddy_data.js sidebar: Move the buddy list tooltip content logic to JS. 2019-11-20 17:04:31 -08:00
buddy_list.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
channel.js node tests: Consolidate some set_global() calls. 2018-08-02 08:02:12 -04:00
color_data.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
colorspace.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
common.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
components.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
compose.js streams: Add LazySet for subscribers. 2019-12-30 09:47:55 -08:00
compose_actions.js compose_state: Rename compost_state.recipient to be about PMs only. 2019-12-02 08:53:55 -08:00
compose_fade.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
compose_pm_pill.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
compose_ui.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
composebox_typeahead.js test cleanup: Extract a sorter() helper. 2019-12-28 05:43:04 -05:00
copy_and_paste.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
dict.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
dispatch.js performance: Avoid expensive call in stream_data.is_active. 2019-12-30 09:45:46 -08:00
drafts.js compose_state: Rename compost_state.recipient to be about PMs only. 2019-12-02 08:53:55 -08:00
echo.js echo: Update topic_links when we get messages back from server. (#12832) 2019-07-20 14:38:52 -07:00
emoji.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
emoji_picker.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
fetch_status.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
filter.js narrow: Use search reading behavior in all searches. 2019-12-10 16:26:06 -08:00
general.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
hash_util.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
hashchange.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
hotkey.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
i18n.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
input_pill.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
keydown_util.js keydown_util: Ignore alt-arrow and similar things. 2018-12-04 12:24:39 -08:00
lightbox.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
list_cursor.js node tests: Bring list_cursor to 100% coverage. 2018-08-24 10:00:04 -07:00
list_render.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
markdown.js js: Automatically convert var to let and const in more files. 2019-11-20 14:10:47 -08:00
message_edit.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
message_events.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_fetch.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_flags.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_list.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_list_data.js search: Don't mark messages as read in search narrow. 2019-07-17 17:58:20 -07:00
message_list_view.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
message_store.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
muting.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
narrow.js compose_state: Rename compost_state.recipient to be about PMs only. 2019-12-02 08:53:55 -08:00
narrow_activate.js narrow: Fix streams:all notice appearing too early. 2019-12-10 18:10:39 -08:00
narrow_local.js narrow: Use search reading behavior in all searches. 2019-12-10 16:26:06 -08:00
narrow_state.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
narrow_unread.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
notifications.js notifications: Support wildcard_mentions_notify for desktop. 2019-12-10 13:12:36 -08:00
password.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
people.js settings: Use correct email when searching users. 2019-12-30 09:43:24 -08:00
people_errors.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
pm_conversations.js tests: Use tricky server data in unit tests. 2020-01-02 11:59:58 -08:00
pm_list.js buddy_data: Fix node tests. 2019-11-20 15:16:08 -08:00
popovers.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
presence.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
reactions.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
recent_senders.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
rtl.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
schema.js lint: Fix comma spacing in node tests. 2018-12-07 13:14:28 -08:00
scroll_util.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
search.js search performance: Stop at max_items. 2019-12-28 11:09:28 -08:00
search_legacy.js search performance: Stop at max_items. 2019-12-28 11:09:28 -08:00
search_pill.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
search_suggestion.js minor: Extract helper for search tests. 2019-12-28 05:43:04 -05:00
search_suggestion_legacy.js search performance: Stop at max_items. 2019-12-28 11:09:28 -08:00
server_events.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
settings_bots.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
settings_muting.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
settings_org.js org_settings: Change new user 24-hour setting to dropdown. 2019-11-08 17:39:59 -08:00
settings_profile_fields.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
settings_user_groups.js js: Automatically convert var to let and const in more files. 2019-11-20 14:10:47 -08:00
stream_data.js performance: Avoid expensive call in stream_data.is_active. 2019-12-30 09:45:46 -08:00
stream_events.js wildcard_mentions_notify: Add per-stream override of global setting. 2019-12-09 16:09:38 -08:00
stream_list.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
stream_search.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
stream_sort.js performance: Avoid dup calls to subscribed_streams(). 2019-12-30 09:50:22 -08:00
submessage.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
subs.js streams: Add BinaryDict for stream_data. 2019-12-30 09:50:20 -08:00
support.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
templates.js sidebar: Move the buddy list tooltip content logic to JS. 2019-11-20 17:04:31 -08:00
timerender.js zjsunit: Remove set_global side effect from zrequire. 2019-11-13 14:29:17 -08:00
top_left_corner.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
topic_data.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
topic_generator.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
topic_list.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
transmit.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
typeahead_helper.js streams: Add LazySet for subscribers. 2019-12-30 09:47:55 -08:00
typing_data.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
typing_status.js typing: Fix invalid typing notifications for stream messages. 2019-12-02 09:31:16 -08:00
ui.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
ui_init.js search performance: Stop at max_items. 2019-12-28 11:09:28 -08:00
unread.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
upgrade.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
upload.js zjsunit: Make window a Proxy for global. 2019-11-13 14:27:13 -08:00
user_events.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
user_groups.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
user_pill.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
user_status.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
util.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
voting_widget.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
widgetize.js poll-widget: Refactor comment to option. 2019-01-29 09:34:14 -08:00
zblueslip.js blueslip: Replace jQuery wrappers with error event listener. 2019-07-09 11:38:20 -07:00
zjquery.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00