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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
4c348234
Commit
4c348234
authored
Mar 07, 2018
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sidebar_detail_row_spec.js
parent
12401758
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
spec/javascripts/jobs/sidebar_detail_row_spec.js
spec/javascripts/jobs/sidebar_detail_row_spec.js
+19
-15
No files found.
spec/javascripts/jobs/sidebar_detail_row_spec.js
View file @
4c348234
...
...
@@ -38,20 +38,24 @@ describe('Sidebar detail row', () => {
).
toEqual
(
'
this is the title: this is the value
'
);
});
it
(
'
should not render help when helpUrl not provided
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.help-button
'
)).
toBeUndefined
();
});
beforeEach
(()
=>
{
vm
=
new
SidebarDetailRow
({
propsData
:
{
helpUrl
:
'
help url
'
,
value
:
'
foo
'
,
},
}).
$mount
();
});
it
(
'
should render help when helpUrl is provided
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.help-button a
'
).
getAttribute
(
'
href
'
)).
toEqual
(
'
help url
'
);
describe
(
'
when helpUrl not provided
'
,
()
=>
{
it
(
'
should not render help
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.help-button
'
)).
toBeNull
();
});
});
describe
(
'
when helpUrl provided
'
,
()
=>
{
beforeEach
(()
=>
{
vm
=
new
SidebarDetailRow
({
propsData
:
{
helpUrl
:
'
help url
'
,
value
:
'
foo
'
,
},
}).
$mount
();
});
it
(
'
should render help
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.help-button a
'
).
getAttribute
(
'
href
'
)).
toEqual
(
'
help url
'
);
});
});
});
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