From c57f12a7929612f8a1a5eb881f1b9784e519eaba Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 8 Nov 2024 01:24:23 -0800 Subject: [PATCH] tests: Remove override_rewire of nonexistent variables. Signed-off-by: Anders Kaseorg --- web/tests/compose_fade.test.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/tests/compose_fade.test.js b/web/tests/compose_fade.test.js index 5d914180e7..179a151d0a 100644 --- a/web/tests/compose_fade.test.js +++ b/web/tests/compose_fade.test.js @@ -23,7 +23,6 @@ const stream_data = zrequire("stream_data"); const peer_data = zrequire("peer_data"); const people = zrequire("people"); const compose_fade = zrequire("compose_fade"); -const compose_recipient = zrequire("compose_recipient"); const compose_fade_helper = zrequire("compose_fade_helper"); const compose_state = zrequire("compose_state"); @@ -51,10 +50,7 @@ people.initialize_current_user(me.user_id); people.add_active_user(alice); people.add_active_user(bob); -run_test("set_focused_recipient", ({override_rewire}) => { - override_rewire(compose_recipient, "selected_stream_name", "social"); - override_rewire(compose_recipient, "is_direct_message_selected", false); - +run_test("set_focused_recipient", () => { const sub = { stream_id: 101, name: "social",