summaryrefslogtreecommitdiff
path: root/spec/frontend/diffs/components
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-17 21:09:20 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-17 21:09:20 +0000
commit06be418a7cd98a1c87c41ba43cca1ce9acbe885e (patch)
tree218a068630ae2dbe87b32a67a7f2b77d631e0db9 /spec/frontend/diffs/components
parenteb1f5a3e087b7d6a3e85f2724b5a475cc9d9d37d (diff)
downloadgitlab-ce-06be418a7cd98a1c87c41ba43cca1ce9acbe885e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/diffs/components')
-rw-r--r--spec/frontend/diffs/components/diff_file_row_spec.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/frontend/diffs/components/diff_file_row_spec.js b/spec/frontend/diffs/components/diff_file_row_spec.js
index bd5b3afdc05..9b7a16d0cb5 100644
--- a/spec/frontend/diffs/components/diff_file_row_spec.js
+++ b/spec/frontend/diffs/components/diff_file_row_spec.js
@@ -2,6 +2,7 @@ import { shallowMount } from '@vue/test-utils';
import DiffFileRow from '~/diffs/components/diff_file_row.vue';
import FileRow from '~/vue_shared/components/file_row.vue';
import FileRowStats from '~/diffs/components/file_row_stats.vue';
+import ChangedFileIcon from '~/vue_shared/components/changed_file_icon.vue';
describe('Diff File Row component', () => {
let wrapper;
@@ -38,6 +39,21 @@ describe('Diff File Row component', () => {
);
});
+ it('renders ChangedFileIcon component', () => {
+ createComponent({
+ level: 4,
+ file: {},
+ hideFileStats: false,
+ });
+
+ expect(wrapper.find(ChangedFileIcon).props()).toEqual(
+ expect.objectContaining({
+ file: {},
+ size: 16,
+ }),
+ );
+ });
+
describe('FileRowStats components', () => {
it.each`
type | hideFileStats | value | desc