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/diffs/components/commit_widget_spec.js')
-rw-r--r--spec/javascripts/diffs/components/commit_widget_spec.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/javascripts/diffs/components/commit_widget_spec.js b/spec/javascripts/diffs/components/commit_widget_spec.js
deleted file mode 100644
index 2b60bd232ed..00000000000
--- a/spec/javascripts/diffs/components/commit_widget_spec.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import Vue from 'vue';
-import mountComponent from 'spec/helpers/vue_mount_component_helper';
-import CommitWidget from '~/diffs/components/commit_widget.vue';
-import getDiffWithCommit from '../mock_data/diff_with_commit';
-
-describe('diffs/components/commit_widget', () => {
- const Component = Vue.extend(CommitWidget);
- const { commit } = getDiffWithCommit();
-
- let vm;
-
- beforeEach(() => {
- vm = mountComponent(Component, {
- commit: getDiffWithCommit().commit,
- });
- });
-
- it('renders commit item', () => {
- const commitElement = vm.$el.querySelector('li.commit');
-
- expect(commitElement).not.toBeNull();
- expect(commitElement).toContainText(commit.short_id);
- });
-});