Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
afbda11c
Commit
afbda11c
authored
Apr 05, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] remove props from tests
parent
a6f2666d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
67 deletions
+0
-67
spec/javascripts/vue_sidebar_assignees/assignee_title_spec.js
.../javascripts/vue_sidebar_assignees/assignee_title_spec.js
+0
-17
spec/javascripts/vue_sidebar_assignees/collapsed/assignees_spec.js
...scripts/vue_sidebar_assignees/collapsed/assignees_spec.js
+0
-17
spec/javascripts/vue_sidebar_assignees/collapsed/avatar_spec.js
...avascripts/vue_sidebar_assignees/collapsed/avatar_spec.js
+0
-12
spec/javascripts/vue_sidebar_assignees/expanded/multiple_assignees_spec.js
...vue_sidebar_assignees/expanded/multiple_assignees_spec.js
+0
-7
spec/javascripts/vue_sidebar_assignees/expanded/no_assignee_spec.js
...cripts/vue_sidebar_assignees/expanded/no_assignee_spec.js
+0
-7
spec/javascripts/vue_sidebar_assignees/expanded/single_assignee_spec.js
...ts/vue_sidebar_assignees/expanded/single_assignee_spec.js
+0
-7
No files found.
spec/javascripts/vue_sidebar_assignees/assignee_title_spec.js
View file @
afbda11c
...
...
@@ -6,23 +6,6 @@ describe('AssigneeTitle', () => {
const
createComponent
=
props
=>
VueSpecHelper
.
createComponent
(
Vue
,
assigneeTitleComponent
,
props
);
describe
(
'
props
'
,
()
=>
{
it
(
'
should have loading prop
'
,
()
=>
{
const
{
loading
}
=
assigneeTitleComponent
.
props
;
expect
(
loading
.
type
).
toBe
(
Boolean
);
});
it
(
'
should have numberOfAssignees prop
'
,
()
=>
{
const
{
numberOfAssignees
}
=
assigneeTitleComponent
.
props
;
expect
(
numberOfAssignees
.
type
).
toBe
(
Number
);
});
it
(
'
should have editable prop
'
,
()
=>
{
const
{
editable
}
=
assigneeTitleComponent
.
props
;
expect
(
editable
.
type
).
toBe
(
Boolean
);
});
});
describe
(
'
computed
'
,
()
=>
{
describe
(
'
assigneeTitle
'
,
()
=>
{
it
(
'
returns "Assignee" when there is only one assignee
'
,
()
=>
{
...
...
spec/javascripts/vue_sidebar_assignees/collapsed/assignees_spec.js
View file @
afbda11c
...
...
@@ -13,23 +13,6 @@ describe('CollapsedAssignees', () => {
const
createAvatarComponent
=
props
=>
VueSpecHelper
.
createComponent
(
Vue
,
avatarComponent
,
props
);
describe
(
'
props
'
,
()
=>
{
it
(
'
should have users prop
'
,
()
=>
{
const
{
users
}
=
assigneesComponent
.
props
;
expect
(
users
.
type
).
toBe
(
Array
);
});
it
(
'
should have defaultRenderCount prop
'
,
()
=>
{
const
{
defaultRenderCount
}
=
assigneesComponent
.
props
;
expect
(
defaultRenderCount
.
type
).
toBe
(
Number
);
});
it
(
'
should have defaultMaxCounter prop
'
,
()
=>
{
const
{
defaultMaxCounter
}
=
assigneesComponent
.
props
;
expect
(
defaultMaxCounter
.
type
).
toBe
(
Number
);
});
});
describe
(
'
computed
'
,
()
=>
{
describe
(
'
title
'
,
()
=>
{
it
(
'
returns one name when there is one assignee
'
,
()
=>
{
...
...
spec/javascripts/vue_sidebar_assignees/collapsed/avatar_spec.js
View file @
afbda11c
...
...
@@ -7,18 +7,6 @@ describe('CollapsedAvatar', () => {
const
createComponent
=
props
=>
VueSpecHelper
.
createComponent
(
Vue
,
avatarComponent
,
props
);
describe
(
'
props
'
,
()
=>
{
it
(
'
should have name prop
'
,
()
=>
{
const
{
name
}
=
avatarComponent
.
props
;
expect
(
name
.
type
).
toBe
(
String
);
});
it
(
'
should have avatarUrl prop
'
,
()
=>
{
const
{
avatarUrl
}
=
avatarComponent
.
props
;
expect
(
avatarUrl
.
type
).
toBe
(
String
);
});
});
describe
(
'
computed
'
,
()
=>
{
describe
(
'
alt
'
,
()
=>
{
it
(
'
returns avatar alt text
'
,
()
=>
{
...
...
spec/javascripts/vue_sidebar_assignees/expanded/multiple_assignees_spec.js
View file @
afbda11c
...
...
@@ -13,13 +13,6 @@ describe('MultipleAssignees', () => {
const
createComponent
=
props
=>
VueSpecHelper
.
createComponent
(
Vue
,
multipleAssigneesComponent
,
props
);
describe
(
'
props
'
,
()
=>
{
it
(
'
should have store prop
'
,
()
=>
{
const
{
store
}
=
multipleAssigneesComponent
.
props
;
expect
(
store
.
type
).
toBe
(
Object
);
});
});
describe
(
'
computed
'
,
()
=>
{
describe
(
'
renderShowMoreSection
'
,
()
=>
{
it
(
'
should return true when users.length is greater than defaultRenderCount
'
,
()
=>
{
...
...
spec/javascripts/vue_sidebar_assignees/expanded/no_assignee_spec.js
View file @
afbda11c
...
...
@@ -10,13 +10,6 @@ describe('NoAssignee', () => {
const
createComponent
=
props
=>
VueSpecHelper
.
createComponent
(
Vue
,
noAssigneeComponent
,
props
);
describe
(
'
props
'
,
()
=>
{
it
(
'
should have store prop
'
,
()
=>
{
const
{
store
}
=
noAssigneeComponent
.
props
;
expect
(
store
.
type
).
toBe
(
Object
);
});
});
describe
(
'
methods
'
,
()
=>
{
describe
(
'
assignSelf
'
,
()
=>
{
it
(
'
should call addCurrentUser in store
'
,
()
=>
{
...
...
spec/javascripts/vue_sidebar_assignees/expanded/single_assignee_spec.js
View file @
afbda11c
...
...
@@ -12,13 +12,6 @@ describe('SingleAssignee', () => {
const
createComponent
=
props
=>
VueSpecHelper
.
createComponent
(
Vue
,
singleAssigneeComponent
,
props
);
describe
(
'
props
'
,
()
=>
{
it
(
'
should have mockStore prop
'
,
()
=>
{
const
{
store
}
=
singleAssigneeComponent
.
props
;
expect
(
store
.
type
).
toBe
(
Object
);
});
});
describe
(
'
computed
'
,
()
=>
{
describe
(
'
user
'
,
()
=>
{
it
(
'
should return first user
'
,
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment