mirror of https://github.com/zulip/zulip.git
node_tests: Remove duplicated code in settings_org tests.
This commit is contained in:
parent
0c67c7d269
commit
577abbd434
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue