js: Convert static/js/narrow_state.js to ES6 module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-27 15:47:56 -08:00
committed by Tim Abbott
parent a1e9be884d
commit b830f53eb5
47 changed files with 161 additions and 118 deletions

View File

@@ -39,9 +39,12 @@ rewiremock("../../static/js/drafts").with({
update_draft: noop,
});
const narrow_state = set_global("narrow_state", {
const narrow_state = {
__esModule: true,
set_compose_defaults: noop,
});
};
rewiremock("../../static/js/narrow_state").with(narrow_state);
set_global("unread_ops", {
notify_server_message_read: noop,