<commit_before>describe('issse_note_actions component', () => {
  it('should render access level badge', () => {

  });

  describe('user is logged in', () => {
    it('should render emoji link', () => {

    });

    describe('actions dropdown', () => {
      it('should be possible to edit the comment', () => {

      });

      it('should be possible to report as abuse', () => {

      });

      it('should be possible to delete comment', () => {

      });
    });
  });

  describe('user is not logged in', () => {
    it('should not render emoji link', () => {

    });

    it('should not render actions dropdown', () => {

    });
  });<commit_msg>Adds unit tests to issue_note_actions component<commit_after>import Vue from 'vue';
import store from '~/notes/stores';
import issueActions from '~/notes/components/issue_note_actions.vue';
import { userDataMock } from '../mock_data';

describe('issse_note_actions component', () => {
  let vm;
  let Component;

  beforeEach(() => {
    Component = Vue.extend(issueActions);
  });

  afterEach(() => {
    vm.$destroy();
  });

  describe('user is logged in', () => {
    let props;

    beforeEach(() => {
      props = {
        accessLevel: 'Master',
        authorId: 26,
        canDelete: true,
        canEdit: true,
        canReportAsAbuse: true,
        noteId: 539,
        reportAbusePath: '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F7%23note_539&user_id=26',
      };

      store.dispatch('setUserData', userDataMock);

      vm = new Component({
        store,
        propsData: props,
      }).$mount();
    });

    it('should render access level badge', () => {
      expect(vm.$el.querySelector('.note-role').textContent.trim()).toEqual(props.accessLevel);
    });

    it('should render emoji link', () => {
      expect(vm.$el.querySelector('.js-add-award')).toBeDefined();
    });

    describe('actions dropdown', () => {
      it('should be possible to edit the comment', () => {
        expect(vm.$el.querySelector('.js-note-edit')).toBeDefined();
      });

      it('should be possible to report as abuse', () => {
        expect(vm.$el.querySelector(`a[href="${props.reportAbusePath}"]`)).toBeDefined();
      });

      it('should be possible to delete comment', () => {
        expect(vm.$el.querySelector('.js-note-delete')).toBeDefined();
      });
    });
  });

  describe('user is not logged in', () => {
    let props;

    beforeEach(() => {
      store.dispatch('setUserData', {});
      props = {
        accessLevel: 'Master',
        authorId: 26,
        canDelete: false,
        canEdit: false,
        canReportAsAbuse: false,
        noteId: 539,
        reportAbusePath: '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F7%23note_539&user_id=26',
      };
      vm = new Component({
        store,
        propsData: props,
      }).$mount();
    });

    it('should not render emoji link', () => {
      expect(vm.$el.querySelector('.js-add-award')).toEqual(null);
    });

    it('should not render actions dropdown', () => {
      expect(vm.$el.querySelector('.more-actions')).toEqual(null);
    });
  });
{'fraction_non_alphanumeric': 0.1806853582554517, 'fraction_numerical': 0.01557632398753894, 'mean_word_length': 2.7511682242990654, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '4370279', 'n_tokens_mistral': 1043, 'n_tokens_neox': 999, 'n_words': 194}