compose.js: Add a setup statement in an on() test.

This commit is contained in:
Aditya Bansal 2017-07-10 18:20:37 +05:30 committed by showell
parent f75b72ef07
commit 783f75ef10
1 changed files with 1 additions and 0 deletions

View File

@ -957,6 +957,7 @@ function test_with_mock_socket(test_params) {
var previous_users = $('#compose_invite_users .compose_invite_user');
previous_users.length = 1;
previous_users[0] = warning_row;
$('#compose_invite_users').hide();
// Now try to mention the same person again. The template should
// not render.