Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

node tests: Tweak test for first/prev/next.

Steve Howell1246970c23dc
diff --git a/frontend_tests/node_tests/activity.js b/frontend_tests/node_tests/activity.js
index d805fbc8de7..61dd3215fd0 100644
--- a/frontend_tests/node_tests/activity.js
+++ b/frontend_tests/node_tests/activity.js
@@ -367,13 +367,11 @@ test("handlers", (override) => {
test("first/prev/next", (override) => {
override(padded_widget, "update_padding", () => {});
- clear_buddy_list();
-
assert.equal(buddy_list.first_key(), undefined);
assert.equal(buddy_list.prev_key(alice.user_id), undefined);
assert.equal(buddy_list.next_key(alice.user_id), undefined);
- buddy_list.container.append = () => {};
+ override(buddy_list.container, "append", () => {});
activity.redraw_user(alice.user_id);
activity.redraw_user(fred.user_id);