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

@@ -41,7 +41,8 @@ set_global("message_scroll", {
});
const message_util = set_global("message_util", {});
const message_store = set_global("message_store", {});
const narrow_state = set_global("narrow_state", {});
const narrow_state = {__esModule: true};
rewiremock("../../static/js/narrow_state").with(narrow_state);
const pm_list = {__esModule: true};
rewiremock("../../static/js/pm_list").with(pm_list);
const server_events = set_global("server_events", {});