Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/ide/components/merge_requests/info_spec.js')
-rw-r--r--spec/javascripts/ide/components/merge_requests/info_spec.js51
1 files changed, 0 insertions, 51 deletions
diff --git a/spec/javascripts/ide/components/merge_requests/info_spec.js b/spec/javascripts/ide/components/merge_requests/info_spec.js
deleted file mode 100644
index 98a29e5128b..00000000000
--- a/spec/javascripts/ide/components/merge_requests/info_spec.js
+++ /dev/null
@@ -1,51 +0,0 @@
-import Vue from 'vue';
-import '~/behaviors/markdown/render_gfm';
-import { createStore } from '~/ide/stores';
-import Info from '~/ide/components/merge_requests/info.vue';
-import { createComponentWithStore } from '../../../helpers/vue_mount_component_helper';
-
-describe('IDE merge request details', () => {
- let Component;
- let vm;
-
- beforeAll(() => {
- Component = Vue.extend(Info);
- });
-
- beforeEach(() => {
- const store = createStore();
- store.state.currentProjectId = 'gitlab-ce';
- store.state.currentMergeRequestId = 1;
- store.state.projects['gitlab-ce'] = {
- mergeRequests: {
- 1: {
- iid: 1,
- title: 'Testing',
- title_html: '<span class="title-html">Testing</span>',
- description: 'Description',
- description_html: '<p class="description-html">Description HTML</p>',
- },
- },
- };
-
- vm = createComponentWithStore(Component, store).$mount();
- });
-
- afterEach(() => {
- vm.$destroy();
- });
-
- it('renders merge request IID', () => {
- expect(vm.$el.querySelector('.detail-page-header').textContent).toContain('!1');
- });
-
- it('renders title as HTML', () => {
- expect(vm.$el.querySelector('.title-html')).not.toBe(null);
- expect(vm.$el.querySelector('.title').textContent).toContain('Testing');
- });
-
- it('renders description as HTML', () => {
- expect(vm.$el.querySelector('.description-html')).not.toBe(null);
- expect(vm.$el.querySelector('.description').textContent).toContain('Description HTML');
- });
-});