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([[]]);
});
});
|