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

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-27 16:10:03 -08:00
committed by Tim Abbott
parent ac65935b16
commit 7145cb4a0d
46 changed files with 118 additions and 61 deletions

View File

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