message_flags: Use override to mock ui.update_starred_view.

This commit is contained in:
YashRE42 2021-03-26 10:14:22 +00:00 committed by Tim Abbott
parent 105a5a95ee
commit 6394a59a5f
1 changed files with 2 additions and 2 deletions

View File

@ -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;