node_tests: Add missing mock children.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-31 18:56:10 -07:00 committed by Tim Abbott
parent 7dd070df44
commit 48102c15a3
2 changed files with 2 additions and 0 deletions

View File

@ -199,6 +199,7 @@ run_test("validate", () => {
$("#sending-indicator").hide();
const pm_pill_container = $.create("fake-pm-pill-container");
$("#private_message_recipient")[0] = {};
$("#private_message_recipient").set_parent(pm_pill_container);
pm_pill_container.set_find_results(".input", $("#private_message_recipient"));
$("#private_message_recipient").before = noop;

View File

@ -106,6 +106,7 @@ function set_up() {
const pill_input = $.create("pill_input");
pill_input[0] = {};
pill_input.before = () => {};
const create_item_from_text = function (text) {