Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
9c7f8268
Commit
9c7f8268
authored
Nov 16, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(build): fixed failing unit test
parent
171335bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
public/app/features/dashboard/specs/dashboard_srv_specs.ts
+6
-2
No files found.
public/app/features/dashboard/specs/dashboard_srv_specs.ts
View file @
9c7f8268
...
...
@@ -62,7 +62,9 @@ describe('dashboardSrv', function() {
it
(
'duplicate panel should try to add it to same row'
,
function
()
{
var
panel
=
{
span
:
4
,
attr
:
'123'
,
id
:
10
};
dashboard
.
rows
=
[{
panels
:
[
panel
]
}];
dashboard
.
addEmptyRow
();
dashboard
.
rows
[
0
].
addPanel
(
panel
);
dashboard
.
duplicatePanel
(
panel
,
dashboard
.
rows
[
0
]);
expect
(
dashboard
.
rows
[
0
].
panels
[
0
].
span
).
to
.
be
(
4
);
...
...
@@ -73,7 +75,9 @@ describe('dashboardSrv', function() {
it
(
'duplicate panel should remove repeat data'
,
function
()
{
var
panel
=
{
span
:
4
,
attr
:
'123'
,
id
:
10
,
repeat
:
'asd'
,
scopedVars
:
{
test
:
'asd'
}};
dashboard
.
rows
=
[{
panels
:
[
panel
]
}];
dashboard
.
addEmptyRow
();
dashboard
.
rows
[
0
].
addPanel
(
panel
);
dashboard
.
duplicatePanel
(
panel
,
dashboard
.
rows
[
0
]);
expect
(
dashboard
.
rows
[
0
].
panels
[
1
].
repeat
).
to
.
be
(
undefined
);
...
...
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