Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Verify peer_add/peer_remove save changes.
Steve Howelle820c43b7767
diff --git a/frontend_tests/node_tests/dispatch_subs.js b/frontend_tests/node_tests/dispatch_subs.jsindex 94a91ed0788..4fea50d3e69 100644--- a/frontend_tests/node_tests/dispatch_subs.js+++ b/frontend_tests/node_tests/dispatch_subs.js@@ -71,10 +71,14 @@ test("peer add/remove", (override) => {assert.equal(compose_fade_stub.num_calls, 1);assert.equal(subs_stub.num_calls, 1);+ assert(peer_data.is_user_subscribed(event.stream_ids[0], event.user_ids[0]));+event = event_fixtures.subscription__peer_remove;dispatch(event);assert.equal(compose_fade_stub.num_calls, 2);assert.equal(subs_stub.num_calls, 2);++ assert(!peer_data.is_user_subscribed(event.stream_ids[0], event.user_ids[0]));});test("remove", (override) => {