diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-11 08:40:12 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-11 08:40:12 +0000 |
commit | 344fee5a9a77a953b2350069008e7ae70c88f303 (patch) | |
tree | 2817ded7935ab5131f9176b6469011a77467fdf0 | |
parent | 6abd3c62ae0cd6e26afd28f76727515107416787 (diff) | |
parent | 76ac0e46d80d6b48fecc632e49f6036b70fb4d43 (diff) | |
download | gitlab-ce-344fee5a9a77a953b2350069008e7ae70c88f303.tar.gz |
Merge branch '32045-vue-warn-cannot-find-element-issuable-time-tracker' into 'master'
Remove sidebar bundle spec
Closes #32045
See merge request !11223
-rw-r--r-- | spec/javascripts/sidebar/sidebar_bundle_spec.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/spec/javascripts/sidebar/sidebar_bundle_spec.js b/spec/javascripts/sidebar/sidebar_bundle_spec.js deleted file mode 100644 index 7760b34e071..00000000000 --- a/spec/javascripts/sidebar/sidebar_bundle_spec.js +++ /dev/null @@ -1,42 +0,0 @@ -import Vue from 'vue'; -import SidebarBundleDomContentLoaded from '~/sidebar/sidebar_bundle'; -import SidebarTimeTracking from '~/sidebar/components/time_tracking/sidebar_time_tracking'; -import SidebarMediator from '~/sidebar/sidebar_mediator'; -import SidebarService from '~/sidebar/services/sidebar_service'; -import SidebarStore from '~/sidebar/stores/sidebar_store'; -import Mock from './mock_data'; - -describe('sidebar bundle', () => { - gl.sidebarOptions = Mock.mediator; - - beforeEach(() => { - spyOn(SidebarTimeTracking.methods, 'listenForSlashCommands').and.callFake(() => { }); - preloadFixtures('issues/open-issue.html.raw'); - Vue.http.interceptors.push(Mock.sidebarMockInterceptor); - loadFixtures('issues/open-issue.html.raw'); - spyOn(Vue.prototype, '$mount'); - SidebarBundleDomContentLoaded(); - this.mediator = new SidebarMediator(); - }); - - afterEach(() => { - SidebarService.singleton = null; - SidebarStore.singleton = null; - SidebarMediator.singleton = null; - }); - - it('the mediator should be already defined with some data', () => { - SidebarBundleDomContentLoaded(); - - expect(this.mediator.store).toBeDefined(); - expect(this.mediator.service).toBeDefined(); - expect(this.mediator.store.currentUser).toEqual(Mock.mediator.currentUser); - expect(this.mediator.store.rootPath).toEqual(Mock.mediator.rootPath); - expect(this.mediator.store.endPoint).toEqual(Mock.mediator.endPoint); - expect(this.mediator.store.editable).toEqual(Mock.mediator.editable); - }); - - it('the sidebar time tracking and assignees components to have been mounted', () => { - expect(Vue.prototype.$mount).toHaveBeenCalledTimes(2); - }); -}); |