From 6394a59a5f9f03b68de56e6f0fad9a02ef2844d0 Mon Sep 17 00:00:00 2001 From: YashRE42 <33805964+YashRE42@users.noreply.github.com> Date: Fri, 26 Mar 2021 10:14:22 +0000 Subject: [PATCH] message_flags: Use override to mock ui.update_starred_view. --- frontend_tests/node_tests/message_flags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend_tests/node_tests/message_flags.js b/frontend_tests/node_tests/message_flags.js index 9a7aeb5f3e..240356cc52 100644 --- a/frontend_tests/node_tests/message_flags.js +++ b/frontend_tests/node_tests/message_flags.js @@ -22,9 +22,9 @@ run_test("starred", (override) => { }; let ui_updated; - ui.update_starred_view = () => { + override(ui, "update_starred_view", () => { ui_updated = true; - }; + }); let posted_data;