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
856b50b0
Commit
856b50b0
authored
Dec 18, 2019
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move prometheus_header specs to jest
parent
fe85fc63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/monitoring/components/shared/prometheus_header.vue
...cripts/monitoring/components/shared/prometheus_header.vue
+1
-1
spec/frontend/monitoring/shared/prometheus_header_spec.js
spec/frontend/monitoring/shared/prometheus_header_spec.js
+1
-1
No files found.
app/assets/javascripts/monitoring/components/shared/prometheus_header.vue
View file @
856b50b0
...
@@ -10,6 +10,6 @@ export default {
...
@@ -10,6 +10,6 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"prometheus-graph-header"
>
<div
class=
"prometheus-graph-header"
>
<h5
class=
"prometheus-graph-title j
s-graph-title"
>
{{
graphTitle
}}
</h5>
<h5
ref=
"title"
class=
"prometheu
s-graph-title"
>
{{
graphTitle
}}
</h5>
</div>
</div>
</
template
>
</
template
>
spec/
javascripts
/monitoring/shared/prometheus_header_spec.js
→
spec/
frontend
/monitoring/shared/prometheus_header_spec.js
View file @
856b50b0
...
@@ -18,7 +18,7 @@ describe('Prometheus Header component', () => {
...
@@ -18,7 +18,7 @@ describe('Prometheus Header component', () => {
describe
(
'
Prometheus header component
'
,
()
=>
{
describe
(
'
Prometheus header component
'
,
()
=>
{
it
(
'
should show a title
'
,
()
=>
{
it
(
'
should show a title
'
,
()
=>
{
const
title
=
prometheusHeader
.
vm
.
$el
.
querySelector
(
'
.js-graph-title
'
).
textContent
;
const
title
=
prometheusHeader
.
find
({
ref
:
'
title
'
}).
text
()
;
expect
(
title
).
toBe
(
'
graph header
'
);
expect
(
title
).
toBe
(
'
graph header
'
);
});
});
...
...
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