zulip/frontend_tests/node_tests
Steve Howell 70b7d4c00b Extract compose_state.js.
This is mostly just moving methods out of compose.js.

The variable `is_composing_message`, which isn't a boolean, has
been renamed to `message_type`, and there are new functions
set_message_type() and get_message_type() that wrap it.

This commit removes some shims related to the global variable
`compose_state`; now, `compose_state` is a typical global
variable with a 1:1 relationship with the module by the same
name.

The new module has 100% line coverage, most of it coming
via the tests on compose_actions.js.  (The methods here are
super simple, so it's a good thing that the tests are somewhat
integrated with a higher layer.)
2017-04-18 12:26:58 -07:00
..
activity.js buddy list: Make small realms show all users. 2017-04-04 15:57:10 -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 Remove dead code related to bot/stream settings. 2017-04-07 15:20:12 -07:00
compose.js Extract compose_state.js. 2017-04-18 12:26:58 -07:00
compose_actions.js Extract compose_state.js. 2017-04-18 12:26:58 -07:00
compose_fade.js Use stream_id in recipient comparisons. 2017-02-26 16:18:02 -08:00
composebox_typeahead.js refactor: Use user_id as key for pm_recipient_count. 2017-02-06 22:38:22 -08:00
dict.js Add Dict.clear() method. 2017-04-07 15:20:12 -07:00
dispatch.js compose: Re-render emoji picker when realm_emoji is added/deleted. 2017-04-18 12:18:52 -07:00
drafts.js Extract compose_state.js. 2017-04-18 12:26:58 -07:00
echo.js node tests: Speed up echo.js by stubbing window. 2017-04-04 06:31:37 -07:00
filter.js node tests: Add test cases for pm-with filter. 2017-04-03 16:31:57 -07:00
hashchange.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
hotkey.js refactor: Move respond/reply methods to compose_actions.js. 2017-04-14 13:09:19 -07:00
i18n.js node tests: Simplify i18n.js and avoid jquery leak. 2017-04-04 06:51:31 -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 Add narrowed_by_topic_reply() helper. 2017-04-17 22:54:36 -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 reactions: Only warn for unknown user ids. 2017-03-26 11:51:36 -07:00
search_suggestion.js search_suggestion: Suggest multiple people in `pm-with` searches. 2017-02-07 14:13:29 -08: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 stream_data: Linkify URL in stream description. 2017-03-20 22:25:03 -07:00
stream_list.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
subs.js refactor: Pass in a full sub to sub_or_unsub(). 2017-03-05 11:55:09 -08:00
templates.js Clean message_edit_history.handlebars to use 4 space indents. 2017-04-18 12:06:28 -07:00
topic_generator.js Create topic_generator.js. 2017-04-06 12:23:44 -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 Break typeahead_helper's dependency on compose.js. 2017-03-18 10:35:52 -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 node tests: Test some zero-count cases for unread.js. 2017-04-03 16:31:57 -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