node tests: Remove __esModule cruft.

We just set __esModule in our rewiremock helper.
This commit is contained in:
Steve Howell
2021-03-06 16:37:51 +00:00
committed by Steve Howell
parent 30c7108955
commit 167fda142c
66 changed files with 314 additions and 543 deletions

View File

@@ -24,16 +24,15 @@ const localStorage = set_global("localStorage", {
ls_container.clear();
},
});
const compose_state = {__esModule: true};
rewiremock("../../static/js/compose_state").with(compose_state);
const compose_state = rewiremock("../../static/js/compose_state").with({});
rewiremock("../../static/js/markdown").with({
apply_markdown: noop,
});
rewiremock("../../static/js/stream_data").with({
get_color() {
return "#FFFFFF";
},
});
rewiremock("../../static/js/markdown").with({
apply_markdown: noop,
});
set_global("page_params", {
twenty_four_hour_time: false,
});