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.

zjsunit: Return true from set handler for window Proxy.

Anders Kaseorg7dd070df44e0
diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js
index 6cfdb072c04..f31afc9c3d6 100644
--- a/frontend_tests/zjsunit/index.js
+++ b/frontend_tests/zjsunit/index.js
@@ -46,7 +46,10 @@ global.stub_out_jquery = namespace.stub_out_jquery;
global.with_overrides = namespace.with_overrides;
global.window = new Proxy(global, {
- set: (obj, prop, value) => namespace.set_global(prop, value),
+ set: (obj, prop, value) => {
+ namespace.set_global(prop, value);
+ return true;
+ },
});
global.to_$ = () => window;