node_tests: Remove duplicated code in settings_org tests.

This commit is contained in:
Sahil Batra 2022-04-15 22:55:17 +05:30 committed by Tim Abbott
parent 0c67c7d269
commit 577abbd434
1 changed files with 0 additions and 13 deletions

View File

@ -383,19 +383,6 @@ function test_sync_realm_settings() {
assert.equal($("#id_realm_msg_edit_limit_setting").val(), "custom_limit");
}
{
/* Test message content edit limit minutes sync */
const $property_elem = $("#id_realm_message_content_edit_limit_minutes");
$property_elem.length = 1;
$property_elem.attr("id", "id_realm_message_content_edit_limit_minutes");
page_params.realm_create_public_stream_policy = 1;
page_params.realm_message_content_edit_limit_seconds = 120;
settings_org.sync_realm_settings("message_content_edit_limit_seconds");
assert.equal($("#id_realm_message_content_edit_limit_minutes").val(), "2");
}
{
/* Test organization joining restrictions settings sync */
const $property_elem = $("#id_realm_org_join_restrictions");