diff options
author | kushalpandya <kushal@gitlab.com> | 2017-08-07 21:30:59 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-08-07 21:30:59 +0530 |
commit | 892ab48add85642b9bf975ec859473a66815db54 (patch) | |
tree | 265dad025e9181b56427f90b2de4dd6f89e96e4f | |
parent | 723a94d2c8b1cfd4ffd0fb69781c1350acd5b74f (diff) | |
download | gitlab-ce-30343-projects-in-groups-tree-fe.tar.gz |
Update tests for newly added prop and bug fix30343-projects-in-groups-tree-fe
-rw-r--r-- | spec/javascripts/groups/project_folder_spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/javascripts/groups/project_folder_spec.js b/spec/javascripts/groups/project_folder_spec.js index 67351886546..065faf88546 100644 --- a/spec/javascripts/groups/project_folder_spec.js +++ b/spec/javascripts/groups/project_folder_spec.js @@ -12,6 +12,7 @@ const createComponent = (customGroup) => { return new Component({ propsData: { projects, + projectCount: customGroup ? customGroup.project_count : group1.project_count, hasMoreItems: false, groupPath: group.fullPath, hasSiblingGroups: false, @@ -36,6 +37,12 @@ describe('ProjectFolderComponent', () => { vm = createComponent(customGroup); }); + describe('hasMoreItems', () => { + it('should return boolean value representing if group has more than 10 projects', () => { + expect(vm.hasMoreItems).toBeTruthy(); + }); + }); + describe('countOfMoreProjects', () => { it('should return total count of projects minus 10', () => { expect(vm.countOfMoreProjects).toBe(1); |