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: Tweak test() wrapper.

Steve Howellb13af16ad038
diff --git a/frontend_tests/node_tests/dispatch_subs.js b/frontend_tests/node_tests/dispatch_subs.js
index fa68539a8ee..93aebeee2e0 100644
--- a/frontend_tests/node_tests/dispatch_subs.js
+++ b/frontend_tests/node_tests/dispatch_subs.js
@@ -42,9 +42,8 @@ people.initialize_current_user(me.user_id);
const dispatch = server_events_dispatch.dispatch_normal_event;
function test(label, f) {
- stream_data.clear_subscriptions();
-
run_test(label, (override) => {
+ stream_data.clear_subscriptions();
f(override);
});
}