Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Avoid stub_selector() in activity tests.
Steve Howelld62ef78e9c17
diff --git a/frontend_tests/node_tests/activity.js b/frontend_tests/node_tests/activity.jsindex 69e7f2332bc..3d8efa1e482 100644--- a/frontend_tests/node_tests/activity.js+++ b/frontend_tests/node_tests/activity.js@@ -476,7 +476,6 @@ test_ui("filter_user_ids", () => {user_ids = get_user_ids();assert.deepEqual(user_ids, [fred.user_id, alice.user_id]);- $.stub_selector(".user-list-filter", []);presence.presence_info.set(alice.user_id, {status: activity.ACTIVE});user_ids = get_user_ids();assert.deepEqual(user_ids, [alice.user_id, fred.user_id]);@@ -670,12 +669,6 @@ test_ui("initialize", () => {clear();- $.stub_selector("html", {- on(name, func) {- func();- },- });-channel.post = function (payload) {payload.success({});};@@ -717,6 +710,10 @@ test_ui("initialize", () => {assert(!activity.new_user_input);assert(!activity.client_is_active);+ // Exercise the mousemove handler, which just+ // sets a flag.+ $("html").get_on_handler("mousemove")();+clear();});