2019-07-07 11:18:12 +05:30
|
|
|
import { shallowMount } from '@vue/test-utils';
|
2020-01-01 13:55:28 +05:30
|
|
|
import JumpToNextDiscussionButton from '~/notes/components/discussion_jump_to_next_button.vue';
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
describe('JumpToNextDiscussionButton', () => {
|
|
|
|
let wrapper;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2020-03-13 15:44:24 +05:30
|
|
|
wrapper = shallowMount(JumpToNextDiscussionButton);
|
2019-07-07 11:18:12 +05:30
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
wrapper.destroy();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('matches the snapshot', () => {
|
|
|
|
expect(wrapper.vm.$el).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|