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: Avoid __Rewire__ in stream_edit.

Steve Howell5f6b0bc831c4
diff --git a/frontend_tests/node_tests/stream_edit.js b/frontend_tests/node_tests/stream_edit.js
index d0033a27aa6..77bb6db8323 100644
--- a/frontend_tests/node_tests/stream_edit.js
+++ b/frontend_tests/node_tests/stream_edit.js
@@ -39,8 +39,6 @@ const stream_edit = zrequire("stream_edit");
const stream_pill = zrequire("stream_pill");
const user_pill = zrequire("user_pill");
-stream_edit.__Rewire__("sort_but_pin_current_user_on_top", noop);
-
const jill = {
user_id: 10,
@@ -97,6 +95,8 @@ function test_ui(label, f) {
}
test_ui("subscriber_pills", (override) => {
+ override(stream_edit, "sort_but_pin_current_user_on_top", noop);
+
const subscriptions_table_selector = "#subscriptions_table";
const input_field_stub = $.create(".input");