mirror of https://github.com/zulip/zulip.git
subs: Harden subscriber count code path against bugs.
This expectOne() should catch some classes of bugs here.
This commit is contained in:
parent
12db219305
commit
87f1516f5d
|
@ -156,7 +156,7 @@ exports.rerender_subscribers_count = function (sub, just_subscribed) {
|
|||
var sub_count = templates.render("subscription_count", sub);
|
||||
stream_row.find('.subscriber-count').expectOne().html(sub_count);
|
||||
} else {
|
||||
stream_row.find(".subscriber-count-text").text(sub.subscriber_count);
|
||||
stream_row.find(".subscriber-count-text").expectOne().text(sub.subscriber_count);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue