diff options
Diffstat (limited to 'spec/javascripts/notes/components/note_body_spec.js')
-rw-r--r-- | spec/javascripts/notes/components/note_body_spec.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/javascripts/notes/components/note_body_spec.js b/spec/javascripts/notes/components/note_body_spec.js index 0ff804f0e55..efad0785afe 100644 --- a/spec/javascripts/notes/components/note_body_spec.js +++ b/spec/javascripts/notes/components/note_body_spec.js @@ -1,15 +1,16 @@ - import Vue from 'vue'; -import store from '~/notes/stores'; +import createStore from '~/notes/stores'; import noteBody from '~/notes/components/note_body.vue'; import { noteableDataMock, notesDataMock, note } from '../mock_data'; describe('issue_note_body component', () => { + let store; let vm; beforeEach(() => { const Component = Vue.extend(noteBody); + store = createStore(); store.dispatch('setNoteableData', noteableDataMock); store.dispatch('setNotesData', notesDataMock); @@ -18,6 +19,7 @@ describe('issue_note_body component', () => { propsData: { note, canEdit: true, + canAwardEmoji: true, }, }).$mount(); }); @@ -36,7 +38,7 @@ describe('issue_note_body component', () => { }); describe('isEditing', () => { - beforeEach((done) => { + beforeEach(done => { vm.isEditing = true; Vue.nextTick(done); }); |