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: Fix example jQuery mock in comment.

Anders Kaseorg923d67ecbaf5
diff --git a/frontend_tests/zjsunit/zjquery.js b/frontend_tests/zjsunit/zjquery.js
index 5348ee48247..e235ad4c5b4 100644
--- a/frontend_tests/zjsunit/zjquery.js
+++ b/frontend_tests/zjsunit/zjquery.js
@@ -644,7 +644,7 @@ const $ = new Proxy(make_zjquery(), {
Or you can do this if you don't actually
need zjquery and just want to simulate one function.
- set_global("$", {
+ mock_cjs("jquery", {
${prop}(...) {...},
});