Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
namespace: Require rewired variables to be exported.
Anders Kaseorgee52618e1b37
diff --git a/web/tests/lib/namespace.js b/web/tests/lib/namespace.jsindex 017ad961613..0a81332c252 100644--- a/web/tests/lib/namespace.js+++ b/web/tests/lib/namespace.js@@ -356,8 +356,8 @@ exports.with_overrides = function (test_function) {`We cannot override a function for ${typeof obj} objects`,);- // https://github.com/rosswarren/babel-plugin-rewire-ts/issues/15- const old_value = prop in obj ? obj[prop] : obj.__GetDependency__(prop);+ assert.ok(Object.hasOwn(obj, prop));+ const old_value = obj[prop];let new_value = value;if (typeof value === "function") {