From a208870b5914a29b91a04f1bd16aed595b32c342 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 8 Nov 2024 02:53:28 -0800 Subject: [PATCH] tests: Fix override of immutable ES module. Signed-off-by: Anders Kaseorg --- web/tests/activity.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tests/activity.test.js b/web/tests/activity.test.js index 128cb96246..2e2ff9a2f3 100644 --- a/web/tests/activity.test.js +++ b/web/tests/activity.test.js @@ -27,6 +27,7 @@ const _document = { const channel = mock_esm("../src/channel"); const electron_bridge = mock_esm("../src/electron_bridge"); +const keydown_util = mock_esm("../src/keydown_util", {handle() {}}); const padded_widget = mock_esm("../src/padded_widget"); const pm_list = mock_esm("../src/pm_list"); const popovers = mock_esm("../src/popovers"); @@ -38,7 +39,6 @@ const watchdog = mock_esm("../src/watchdog"); set_global("document", _document); const direct_message_group_data = zrequire("direct_message_group_data"); -const keydown_util = zrequire("keydown_util"); const muted_users = zrequire("muted_users"); const presence = zrequire("presence"); const people = zrequire("people");