Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Suggest with_field instead of override for non-functions.
Abhijeet Prasad Bodasc183076a9157
diff --git a/frontend_tests/zjsunit/namespace.js b/frontend_tests/zjsunit/namespace.jsindex 8e0c6316474..962d009b10a 100644--- a/frontend_tests/zjsunit/namespace.js+++ b/frontend_tests/zjsunit/namespace.js@@ -106,7 +106,9 @@ exports.with_overrides = function (test_function) {// step. Generally our code calls `run_test`, which wraps// `with_overrides`.if (typeof f !== "function") {- throw new TypeError("You can only override with a function.");+ throw new TypeError(+ "You can only override with a function. Use with_field for non-functions.",+ );}if (!funcs.has(obj)) {