diff options
Diffstat (limited to 'spec/javascripts/issue_show/components')
-rw-r--r-- | spec/javascripts/issue_show/components/app_spec.js | 14 | ||||
-rw-r--r-- | spec/javascripts/issue_show/components/fields/title_spec.js | 2 | ||||
-rw-r--r-- | spec/javascripts/issue_show/components/title_spec.js | 11 |
3 files changed, 8 insertions, 19 deletions
diff --git a/spec/javascripts/issue_show/components/app_spec.js b/spec/javascripts/issue_show/components/app_spec.js index 1c47ba49b18..22b0a0f7046 100644 --- a/spec/javascripts/issue_show/components/app_spec.js +++ b/spec/javascripts/issue_show/components/app_spec.js @@ -29,7 +29,7 @@ describe('Issuable output', () => { propsData: { canUpdate: true, canDestroy: true, - endpoint: '/gitlab-org/gitlab-shell/issues/9/rendered_title', + endpoint: '/gitlab-org/gitlab-shell/issues/9/realtime_changes', issuableRef: '#1', initialTitle: '', initialDescriptionHtml: '', @@ -75,18 +75,6 @@ describe('Issuable output', () => { }); }); - it('changes element to `form` when open', (done) => { - vm.showForm = true; - - Vue.nextTick(() => { - expect( - vm.$el.tagName, - ).toBe('FORM'); - - done(); - }); - }); - it('does not show actions if permissions are incorrect', (done) => { vm.showForm = true; vm.canUpdate = false; diff --git a/spec/javascripts/issue_show/components/fields/title_spec.js b/spec/javascripts/issue_show/components/fields/title_spec.js index 69afcd24df9..53ae038a6a2 100644 --- a/spec/javascripts/issue_show/components/fields/title_spec.js +++ b/spec/javascripts/issue_show/components/fields/title_spec.js @@ -17,7 +17,7 @@ describe('Title field component', () => { vm = new Component({ propsData: { - store, + formState: store.formState, }, }).$mount(); }); diff --git a/spec/javascripts/issue_show/components/title_spec.js b/spec/javascripts/issue_show/components/title_spec.js index 45ec8718eb6..2f648e4b79b 100644 --- a/spec/javascripts/issue_show/components/title_spec.js +++ b/spec/javascripts/issue_show/components/title_spec.js @@ -7,17 +7,18 @@ describe('Title component', () => { beforeEach(() => { const Component = Vue.extend(titleComponent); + const store = new Store({ + titleHtml: '', + descriptionHtml: '', + issuableRef: '', + }); vm = new Component({ propsData: { issuableRef: '#1', titleHtml: 'Testing <img />', titleText: 'Testing', showForm: false, - store: new Store({ - titleHtml: '', - descriptionHtml: '', - issuableRef: '', - }), + formState: store.formState, }, }).$mount(); }); |