blob: 20b32b8c1780a2491a920e019218c46a2be563f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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);
});
afterEach(() => {
wrapper.destroy();
wrapper = null;
});
it('emits startReplying on click', () => {
wrapper.findComponent(GlButton).vm.$emit('click');
expect(wrapper.emitted('startReplying')).toEqual([[]]);
});
});
|