Skip to content
Snippets Groups Projects
Verified Commit 1ae013da authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Fix karma

parent 09e6b8b9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -413,8 +413,8 @@ export default class Notes {
return;
}
this.note_ids.push(noteEntity.id);
form = $form || $(`.js-discussion-note-form[data-discussion-id="${noteEntity.discussion_id}"]`);
 
form = $form || $(`.js-discussion-note-form[data-discussion-id="${noteEntity.discussion_id}"]`);
row = form.length ? form.closest('tr') : $(`#${noteEntity.discussion_line_code}`);
 
if (noteEntity.on_image) {
Loading
Loading
Loading
Loading
@@ -333,6 +333,7 @@ import '~/notes';
diff_discussion_html: false,
};
$form = jasmine.createSpyObj('$form', ['closest', 'find']);
$form.length = 1;
row = jasmine.createSpyObj('row', ['prevAll', 'first', 'find']);
 
notes = jasmine.createSpyObj('notes', [
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment