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
237f16da
Commit
237f16da
authored
May 19, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MRWidget: Fix approval footer JS spec.
parent
5cc1abf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec/javascripts/approvals/approvals_footer_spec.js
spec/javascripts/approvals/approvals_footer_spec.js
+7
-1
No files found.
spec/javascripts/approvals/approvals_footer_spec.js
View file @
237f16da
...
@@ -21,6 +21,10 @@ import ApprovalsFooter from '~/vue_merge_request_widget/ee/components/approvals/
...
@@ -21,6 +21,10 @@ import ApprovalsFooter from '~/vue_merge_request_widget/ee/components/approvals/
`
);
`
);
this
.
initialData
=
{
this
.
initialData
=
{
mr
:
{
state
:
'
readyToMerge
'
,
},
service
:
{},
userCanApprove
:
false
,
userCanApprove
:
false
,
userHasApproved
:
true
,
userHasApproved
:
true
,
approvedBy
:
[],
approvedBy
:
[],
...
@@ -53,7 +57,9 @@ import ApprovalsFooter from '~/vue_merge_request_widget/ee/components/approvals/
...
@@ -53,7 +57,9 @@ import ApprovalsFooter from '~/vue_merge_request_widget/ee/components/approvals/
describe
(
'
Computed properties
'
,
function
()
{
describe
(
'
Computed properties
'
,
function
()
{
it
(
'
should correctly set showUnapproveButton when the user can unapprove
'
,
function
()
{
it
(
'
should correctly set showUnapproveButton when the user can unapprove
'
,
function
()
{
expect
(
this
.
approvalsFooter
.
showUnapproveButton
).
toBe
(
true
);
expect
(
this
.
approvalsFooter
.
showUnapproveButton
).
toBeTruthy
();
this
.
approvalsFooter
.
mr
.
state
=
'
merged
'
;
expect
(
this
.
approvalsFooter
.
showUnapproveButton
).
toBeFalsy
();
});
});
it
(
'
should correctly set showUnapproveButton when the user can not unapprove
'
,
function
(
done
)
{
it
(
'
should correctly set showUnapproveButton when the user can not unapprove
'
,
function
(
done
)
{
...
...
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