summaryrefslogtreecommitdiff
path: root/spec/javascripts/notes
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-02-20 21:09:04 +0100
committerWinnie Hellmann <winnie@gitlab.com>2019-02-21 10:53:00 +0100
commit0e619d01b0fbe3234f7983b9f012bb25715e142a (patch)
treee9b0b14c8c370289b88292a3f509ceeaa76adacb /spec/javascripts/notes
parentee74f7b8e5a4a4bdc84a2d50bd34a7bfa6463a3f (diff)
downloadgitlab-ce-0e619d01b0fbe3234f7983b9f012bb25715e142a.tar.gz
Move discussion_jump_to_next_button_spec.js to Jest
Diffstat (limited to 'spec/javascripts/notes')
-rw-r--r--spec/javascripts/notes/components/discussion_jump_to_next_button_spec.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/javascripts/notes/components/discussion_jump_to_next_button_spec.js b/spec/javascripts/notes/components/discussion_jump_to_next_button_spec.js
deleted file mode 100644
index c41b29fa788..00000000000
--- a/spec/javascripts/notes/components/discussion_jump_to_next_button_spec.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import jumpToNextDiscussionButton from '~/notes/components/discussion_jump_to_next_button.vue';
-import { shallowMount, createLocalVue } from '@vue/test-utils';
-
-const localVue = createLocalVue();
-
-describe('jumpToNextDiscussionButton', () => {
- let wrapper;
-
- beforeEach(() => {
- wrapper = shallowMount(jumpToNextDiscussionButton, {
- localVue,
- sync: false,
- });
- });
-
- afterEach(() => {
- wrapper.destroy();
- });
-
- it('emits onClick event on button click', done => {
- const button = wrapper.find({ ref: 'button' });
-
- button.trigger('click');
-
- localVue.nextTick(() => {
- expect(wrapper.emitted()).toEqual({
- onClick: [[]],
- });
-
- done();
- });
- });
-});