From a2c4e3a22040e45dc92d4039b859e3953f217429 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 9 Oct 2024 15:54:34 -0700 Subject: [PATCH] tests: Use override for realm_user_settings_defaults. Signed-off-by: Anders Kaseorg --- web/tests/dispatch.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/tests/dispatch.test.js b/web/tests/dispatch.test.js index 654e142894..68538edb35 100644 --- a/web/tests/dispatch.test.js +++ b/web/tests/dispatch.test.js @@ -1320,13 +1320,13 @@ run_test("server_event_dispatch_op_errors", () => { run_test("realm_user_settings_defaults", ({override}) => { let event = event_fixtures.realm_user_settings_defaults__emojiset; - realm_user_settings_defaults.emojiset = "text"; + override(realm_user_settings_defaults, "emojiset", "text"); override(settings_realm_user_settings_defaults, "update_page", noop); dispatch(event); assert_same(realm_user_settings_defaults.emojiset, "google"); event = event_fixtures.realm_user_settings_defaults__notification_sound; - realm_user_settings_defaults.notification_sound = "zulip"; + override(realm_user_settings_defaults, "notification_sound", "zulip"); let called = false; audible_notifications.update_notification_sound_source = () => { called = true;