From df6bcf6d3d97b61a9c5a0cca4d1e219db2506d66 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 8 Nov 2024 02:23:24 -0800 Subject: [PATCH] tests: Avoid override_rewire of overloaded function. Signed-off-by: Anders Kaseorg --- web/tests/compose_validate.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tests/compose_validate.test.js b/web/tests/compose_validate.test.js index d8d9617f1a..2972170069 100644 --- a/web/tests/compose_validate.test.js +++ b/web/tests/compose_validate.test.js @@ -326,7 +326,7 @@ test_ui("get_invalid_recipient_emails", ({override, override_rewire}) => { 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(), []); });