Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Set jQuery object as parent.
Anders Kaseorgfb902622bbda
diff --git a/web/tests/compose_pm_pill.test.cjs b/web/tests/compose_pm_pill.test.cjsindex 4ebbb76b2ed..1ea8e6f6716 100644--- a/web/tests/compose_pm_pill.test.cjs+++ b/web/tests/compose_pm_pill.test.cjs@@ -52,8 +52,8 @@ run_test("pills", ({override}) => {people.add_active_user(hamlet);const $recipient_stub = $("#private_message_recipient");- const pill_container_stub = "pill-container";- $recipient_stub.set_parent(pill_container_stub);+ const $pill_container_stub = $.create("pill-container-stub");+ $recipient_stub.set_parent($pill_container_stub);let create_item_handler;const all_pills = new Map();@@ -111,7 +111,7 @@ run_test("pills", ({override}) => {}function input_pill_stub(opts) {- assert.equal(opts.$container, pill_container_stub);+ assert.equal(opts.$container, $pill_container_stub);create_item_handler = opts.create_item_from_text;assert.ok(create_item_handler);return pills;