mirror of https://github.com/zulip/zulip.git
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:
parent
3104d3ea3e
commit
493529d981
|
@ -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(), '');
|
||||
|
||||
|
|
Loading…
Reference in New Issue