mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
tests: Fix mock setup for update_calculated_fields.
This fixes a test failure introduced in
c5904499db. It's not clear to me that
this mocking approach is a good idea; it's pretty messy.
This commit is contained in:
@@ -147,6 +147,7 @@ stream_data.add_sub('Frontend', frontend);
|
|||||||
subscribe_myself: noop,
|
subscribe_myself: noop,
|
||||||
set_subscribers: noop,
|
set_subscribers: noop,
|
||||||
get_colors: noop,
|
get_colors: noop,
|
||||||
|
update_calculated_fields: noop,
|
||||||
});
|
});
|
||||||
set_global('subs', { update_settings_for_subscribed: noop });
|
set_global('subs', { update_settings_for_subscribed: noop });
|
||||||
set_global('narrow_state', { is_for_stream_id: noop });
|
set_global('narrow_state', { is_for_stream_id: noop });
|
||||||
|
|||||||
Reference in New Issue
Block a user