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: Handle duplicate overrides.

Steve Howell0d68a2306624
diff --git a/frontend_tests/zjsunit/namespace.js b/frontend_tests/zjsunit/namespace.js
index c398f86e063..10d8b2bd40f 100644
--- a/frontend_tests/zjsunit/namespace.js
+++ b/frontend_tests/zjsunit/namespace.js
@@ -102,6 +102,7 @@ exports.with_overrides = function (test_function) {
test_function(override);
+ restore_callbacks.reverse();
for (const restore_callback of restore_callbacks) {
restore_callback();
}