Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node fixtures: Make "op" more explicit.
Steve Howella93a3dc90cf9
diff --git a/frontend_tests/node_tests/dispatch.js b/frontend_tests/node_tests/dispatch.jsindex 5b64a417c71..6a4646a59a0 100644--- a/frontend_tests/node_tests/dispatch.js+++ b/frontend_tests/node_tests/dispatch.js@@ -119,8 +119,9 @@ run_test("alert_words", (override) => {});run_test("attachments", (override) => {- const event = event_fixtures.attachment;+ const event = event_fixtures.attachment__add;global.with_stub((stub) => {+ // attachments_ui is hard to test deeplyoverride("attachments_ui.update_attachments", stub.f);dispatch(event);assert_same(stub.get_args("event").event, event);@@ -167,7 +168,7 @@ run_test("user groups", (override) => {});run_test("custom profile fields", (override) => {- const event = event_fixtures.custom_profile_fields;+ const event = event_fixtures.custom_profile_fields__update;override("settings_profile_fields.populate_profile_fields", noop);override("settings_account.add_custom_profile_fields_to_settings", noop);dispatch(event);diff --git a/frontend_tests/node_tests/lib/events.js b/frontend_tests/node_tests/lib/events.jsindex 2c2e9594b6c..8639737b8a7 100644--- a/frontend_tests/node_tests/lib/events.js+++ b/frontend_tests/node_tests/lib/events.js@@ -87,11 +87,13 @@ exports.fixtures = {alert_words: ["fire", "lunch"],},- attachment: {+ attachment__add: {type: "attachment",+ op: "add",+ // missing data due to shallow test},- custom_profile_fields: {+ custom_profile_fields__update: {type: "custom_profile_fields",op: "update",fields: [