Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node tests: Test redundant actions in reactions.
Steve Howella577004842a5
diff --git a/frontend_tests/node_tests/reactions.js b/frontend_tests/node_tests/reactions.jsindex cfbe6f1bcbd..fff864bfe01 100644--- a/frontend_tests/node_tests/reactions.js+++ b/frontend_tests/node_tests/reactions.js@@ -609,6 +609,15 @@ run_test("add_reaction/remove_reaction", (override) => {alice_emojis: ["8ball"],});+ // Add redundant reaction.+ test_view_calls({+ run_code() {+ reactions.add_reaction(alice_8ball_event);+ },+ expected_view_calls: [],+ alice_emojis: ["8ball"],+ });+test_view_calls({run_code() {reactions.add_reaction(bob_8ball_event);@@ -687,6 +696,15 @@ run_test("add_reaction/remove_reaction", (override) => {],alice_emojis: [],});++ // Test redundant remove.+ test_view_calls({+ run_code() {+ reactions.remove_reaction(alice_8ball_event);+ },+ expected_view_calls: [],+ alice_emojis: [],+ });});run_test("error_handling", (override) => {