mirror of https://github.com/zulip/zulip.git
tests: Avoid override_rewire of overloaded function.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ee52618e1b
commit
df6bcf6d3d
|
@ -326,7 +326,7 @@ test_ui("get_invalid_recipient_emails", ({override, override_rewire}) => {
|
||||||
|
|
||||||
people.initialize(current_user.user_id, params);
|
people.initialize(current_user.user_id, params);
|
||||||
|
|
||||||
override_rewire(compose_state, "private_message_recipient", () => "welcome-bot@example.com");
|
override_rewire(compose_pm_pill, "get_emails", () => "welcome-bot@example.com");
|
||||||
assert.deepEqual(compose_validate.get_invalid_recipient_emails(), []);
|
assert.deepEqual(compose_validate.get_invalid_recipient_emails(), []);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue