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
6156edf2
Commit
6156edf2
authored
Oct 24, 2019
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix embed specs
parent
45997a4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
spec/frontend/monitoring/embed/embed_spec.js
spec/frontend/monitoring/embed/embed_spec.js
+2
-2
spec/frontend/monitoring/embed/mock_data.js
spec/frontend/monitoring/embed/mock_data.js
+3
-1
No files found.
spec/frontend/monitoring/embed/embed_spec.js
View file @
6156edf2
...
@@ -61,8 +61,8 @@ describe('Embed', () => {
...
@@ -61,8 +61,8 @@ describe('Embed', () => {
describe
(
'
metrics are available
'
,
()
=>
{
describe
(
'
metrics are available
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
store
.
state
.
monitoringDashboard
.
groups
=
groups
;
store
.
state
.
monitoringDashboard
.
dashboard
.
panel_
groups
=
groups
;
store
.
state
.
monitoringDashboard
.
groups
[
0
].
metrics
=
metricsData
;
store
.
state
.
monitoringDashboard
.
dashboard
.
panel_
groups
[
0
].
metrics
=
metricsData
;
store
.
state
.
monitoringDashboard
.
metricsWithData
=
metricsWithData
;
store
.
state
.
monitoringDashboard
.
metricsWithData
=
metricsWithData
;
mountComponent
();
mountComponent
();
...
...
spec/frontend/monitoring/embed/mock_data.js
View file @
6156edf2
...
@@ -81,7 +81,9 @@ export const metricsData = [
...
@@ -81,7 +81,9 @@ export const metricsData = [
export
const
initialState
=
{
export
const
initialState
=
{
monitoringDashboard
:
{},
monitoringDashboard
:
{},
groups
:
[],
dashboard
:
{
panel_groups
:
[],
},
metricsWithData
:
[],
metricsWithData
:
[],
useDashboardEndpoint
:
true
,
useDashboardEndpoint
:
true
,
};
};
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