mirror of https://github.com/zulip/zulip.git
tests: Replace stream_count, topic_count, html_dict with IntDict.
stream_count and topic_count in the actual code have been IntDict
since commit 9ba1829243
(#13569).
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
b41968c4a7
commit
ad06810501
|
@ -2,8 +2,8 @@ set_global('document', 'document-stub');
|
|||
set_global('$', global.make_zjquery());
|
||||
set_global('blueslip', global.make_zblueslip());
|
||||
|
||||
const Dict = zrequire('dict').Dict;
|
||||
const FoldDict = zrequire('fold_dict').FoldDict;
|
||||
const IntDict = zrequire('int_dict').IntDict;
|
||||
zrequire('unread_ui');
|
||||
zrequire('Filter', 'js/filter');
|
||||
zrequire('util');
|
||||
|
@ -638,7 +638,7 @@ run_test('update_count_in_dom', () => {
|
|||
stream_li.addClass('stream-with-count');
|
||||
assert(stream_li.hasClass('stream-with-count'));
|
||||
|
||||
const stream_count = new Dict();
|
||||
const stream_count = new IntDict();
|
||||
const stream_id = 11;
|
||||
|
||||
const stream_row = {
|
||||
|
@ -650,7 +650,7 @@ run_test('update_count_in_dom', () => {
|
|||
stream_count.set(stream_id, 0);
|
||||
const counts = {
|
||||
stream_count: stream_count,
|
||||
topic_count: new Dict(),
|
||||
topic_count: new IntDict(),
|
||||
};
|
||||
|
||||
stream_list.update_dom_with_unread_counts(counts);
|
||||
|
@ -764,7 +764,7 @@ run_test('refresh_pin', () => {
|
|||
run_test('create_initial_sidebar_rows', () => {
|
||||
initialize_stream_data();
|
||||
|
||||
const html_dict = new Dict();
|
||||
const html_dict = new IntDict();
|
||||
|
||||
stream_list.stream_sidebar = {
|
||||
has_row_for: return_false,
|
||||
|
|
Loading…
Reference in New Issue