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
105a678d
Commit
105a678d
authored
Apr 03, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(): another test fix
parent
a12de095
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
public/app/plugins/panel/graph/specs/graph_specs.ts
+3
-1
public/test/specs/dashboardSrv-specs.js
+4
-0
public/test/specs/dynamicDashboardSrv-specs.js
+10
-5
No files found.
public/app/plugins/panel/graph/specs/graph_specs.ts
View file @
105a678d
...
...
@@ -53,7 +53,9 @@ describe('grafanaGraph', function() {
},
renderingCompleted
:
sinon
.
spy
(),
hiddenSeries
:
{},
dashboard
:
{
timezone
:
'browser'
},
dashboard
:
{
getTimezone
:
sinon
.
stub
().
returns
(
'browser'
)
},
range
:
{
from
:
moment
([
2015
,
1
,
1
,
10
]),
to
:
moment
([
2015
,
1
,
1
,
22
]),
...
...
public/test/specs/dashboardSrv-specs.js
View file @
105a678d
...
...
@@ -7,6 +7,10 @@ define([
var
_dashboardSrv
;
beforeEach
(
module
(
'grafana.services'
));
beforeEach
(
module
(
function
(
$provide
)
{
$provide
.
value
(
'contextSrv'
,
{
});
}));
beforeEach
(
inject
(
function
(
dashboardSrv
)
{
_dashboardSrv
=
dashboardSrv
;
...
...
public/test/specs/dynamicDashboardSrv-specs.js
View file @
105a678d
...
...
@@ -12,6 +12,11 @@ define([
ctx
.
setup
=
function
(
setupFunc
)
{
beforeEach
(
module
(
'grafana.services'
));
beforeEach
(
module
(
function
(
$provide
)
{
$provide
.
value
(
'contextSrv'
,
{
user
:
{
timezone
:
'utc'
}
});
}));
beforeEach
(
inject
(
function
(
dynamicDashboardSrv
,
dashboardSrv
)
{
ctx
.
dynamicDashboardSrv
=
dynamicDashboardSrv
;
...
...
@@ -45,10 +50,10 @@ define([
value
:
[
'se1'
,
'se2'
,
'se3'
]
},
options
:
[
{
text
:
'se1'
,
value
:
'se1'
,
selected
:
true
},
{
text
:
'se2'
,
value
:
'se2'
,
selected
:
true
},
{
text
:
'se3'
,
value
:
'se3'
,
selected
:
true
},
{
text
:
'se4'
,
value
:
'se4'
,
selected
:
false
}
{
text
:
'se1'
,
value
:
'se1'
,
selected
:
true
},
{
text
:
'se2'
,
value
:
'se2'
,
selected
:
true
},
{
text
:
'se3'
,
value
:
'se3'
,
selected
:
true
},
{
text
:
'se4'
,
value
:
'se4'
,
selected
:
false
}
]
});
});
...
...
@@ -93,7 +98,7 @@ define([
describe
(
'After a second iteration and selected values reduced'
,
function
()
{
beforeEach
(
function
()
{
ctx
.
dash
.
templating
.
list
[
0
].
options
[
1
].
selected
=
false
;
ctx
.
dynamicDashboardSrv
.
update
(
ctx
.
dash
);
});
...
...
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