compose: Fix node test failure from video link integration.

It's pretty annoying that we're seeing this several hours after the
original code was merged.
This commit is contained in:
Tim Abbott 2017-10-30 23:06:04 -07:00
parent 3104d3ea3e
commit 493529d981
1 changed files with 6 additions and 0 deletions

View File

@ -1085,6 +1085,12 @@ function test_with_mock_socket(test_params) {
}());
(function test_video_link_compose_clicked() {
// Hackishly pretend caret is the same as val, since we don't
// have a cursor anyway.
$('#new_message_content').caret = function (x) {
$('#new_message_content').val(x);
};
var handler = $("#compose").get_on_handler("click", "#video_link");
assert.equal($('#new_message_content').val(), '');