Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reply_button_spec.js « note_actions « components « notes « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 68b11fb3b1a45992858fcd1ae5484a2b1ec82e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { GlButton } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import ReplyButton from '~/notes/components/note_actions/reply_button.vue';

describe('ReplyButton', () => {
  let wrapper;

  beforeEach(() => {
    wrapper = shallowMount(ReplyButton);
  });

  it('emits startReplying on click', () => {
    wrapper.findComponent(GlButton).vm.$emit('click');

    expect(wrapper.emitted('startReplying')).toEqual([[]]);
  });
});