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 zjquery for channel tests.

Steve Howell623500bae1e0
diff --git a/frontend_tests/node_tests/channel.js b/frontend_tests/node_tests/channel.js
index 4058c6a813b..e05ed245021 100644
--- a/frontend_tests/node_tests/channel.js
+++ b/frontend_tests/node_tests/channel.js
@@ -6,7 +6,6 @@ const _ = require("lodash");
const {set_global, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
-const $ = require("../zjsunit/zjquery");
const reload = set_global("reload", {});
zrequire("reload_state");
@@ -14,6 +13,8 @@ const channel = zrequire("channel");
const default_stub_xhr = "default-stub-xhr";
+const $ = set_global("$", {});
+
function test_with_mock_ajax(test_params) {
const {xhr = default_stub_xhr, run_code, check_ajax_options} = test_params;