node tests: Set compose state for compose_actions tests.

This commit is contained in:
Steve Howell 2021-03-16 11:16:19 +00:00 committed by Steve Howell
parent 157ab156e7
commit 4d59fb1063
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,7 @@ function override_private_message_recipient(override) {
function test(label, f) { function test(label, f) {
run_test(label, (override) => { run_test(label, (override) => {
people.init(); people.init();
compose_state.set_message_type(false);
f(override); f(override);
}); });
} }
@ -255,6 +256,7 @@ test("respond_to_message", (override) => {
}); });
test("reply_with_mention", (override) => { test("reply_with_mention", (override) => {
compose_state.set_message_type("stream");
override(compose_actions, "set_focus", () => {}); override(compose_actions, "set_focus", () => {});
override(compose_actions, "complete_starting_tasks", () => {}); override(compose_actions, "complete_starting_tasks", () => {});
override(compose_actions, "clear_textarea", () => {}); override(compose_actions, "clear_textarea", () => {});
@ -300,6 +302,7 @@ test("reply_with_mention", (override) => {
}); });
test("quote_and_reply", (override) => { test("quote_and_reply", (override) => {
compose_state.set_message_type("stream");
const steve = { const steve = {
user_id: 90, user_id: 90,
email: "steve@example.com", email: "steve@example.com",