<commit_before>/* global Notes */

import 'vendor/autosize';
import '~/gl_form';
import '~/lib/utils/text_utility';
import '~/render_gfm';
import '~/render_math';
import '~/notes';

fdescribe('Merge request notes', () => {
  window.gon = window.gon || {};
  window.gl = window.gl || {};
  gl.utils = gl.utils || {};

  const fixture = 'merge_requests/diff_comment.html.raw';
  preloadFixtures(fixture);

  beforeEach(() => {
    loadFixtures(fixture);
    gl.utils.disableButtonIfEmptyField = _.noop;
    window.project_uploads_path = 'http://test.host/uploads';
    $('body').data('page', 'projects:merge_requests:show');
    window.gon.current_user_id = $('.note:last').data('author-id');

    return new Notes('', []);
  });

  describe('up arrow', () => {
    it('edits last comment when triggered in main form', () => {
      const upArrowEvent = $.Event('keydown');<commit_msg>Fixed focused test in notes spec<commit_after>/* global Notes */

import 'vendor/autosize';
import '~/gl_form';
import '~/lib/utils/text_utility';
import '~/render_gfm';
import '~/render_math';
import '~/notes';

describe('Merge request notes', () => {
  window.gon = window.gon || {};
  window.gl = window.gl || {};
  gl.utils = gl.utils || {};

  const fixture = 'merge_requests/diff_comment.html.raw';
  preloadFixtures(fixture);

  beforeEach(() => {
    loadFixtures(fixture);
    gl.utils.disableButtonIfEmptyField = _.noop;
    window.project_uploads_path = 'http://test.host/uploads';
    $('body').data('page', 'projects:merge_requests:show');
    window.gon.current_user_id = $('.note:last').data('author-id');

    return new Notes('', []);
  });

  describe('up arrow', () => {
    it('edits last comment when triggered in main form', () => {
      const upArrowEvent = $.Event('keydown');
{'fraction_non_alphanumeric': 0.1961883408071749, 'fraction_numerical': 0.0, 'mean_word_length': 4.129310344827586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5441361', 'n_tokens_mistral': 599, 'n_tokens_neox': 570, 'n_words': 112}