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
45997a4d
Commit
45997a4d
authored
Oct 24, 2019
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A spec to test key is created
parent
e253581b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
spec/javascripts/monitoring/store/mutations_spec.js
spec/javascripts/monitoring/store/mutations_spec.js
+7
-0
No files found.
spec/javascripts/monitoring/store/mutations_spec.js
View file @
45997a4d
...
...
@@ -24,6 +24,13 @@ describe('Monitoring mutations', () => {
groups
=
metricsGroupsAPIResponse
.
data
;
});
it
(
'
adds a key to the group
'
,
()
=>
{
mutations
[
types
.
RECEIVE_METRICS_DATA_SUCCESS
](
stateCopy
,
groups
);
expect
(
stateCopy
.
dashboard
.
panel_groups
[
0
].
key
).
toBe
(
'
kubernetes-0
'
);
expect
(
stateCopy
.
dashboard
.
panel_groups
[
1
].
key
).
toBe
(
'
nginx-1
'
);
});
it
(
'
normalizes values
'
,
()
=>
{
mutations
[
types
.
RECEIVE_METRICS_DATA_SUCCESS
](
stateCopy
,
groups
);
...
...
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