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
827fb7e8
Commit
827fb7e8
authored
May 30, 2018
by
David Kaltschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix karma tests that rely on MetricsPanelCtrl
parent
7224ca6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
public/app/features/panel/metrics_panel_ctrl.ts
+2
-2
public/test/specs/helpers.ts
+2
-0
No files found.
public/app/features/panel/metrics_panel_ctrl.ts
View file @
827fb7e8
import
config
from
'app/core/config'
;
import
$
from
'jquery'
;
import
_
from
'lodash'
;
import
config
from
'app/core/config'
;
import
kbn
from
'app/core/utils/kbn'
;
import
{
PanelCtrl
}
from
'app/features/panel/panel_ctrl'
;
import
*
as
rangeUtil
from
'app/core/utils/rangeutil'
;
import
*
as
dateMath
from
'app/core/utils/datemath'
;
import
{
encodePathComponent
}
from
'app/core/utils/location_util'
;
...
...
public/test/specs/helpers.ts
View file @
827fb7e8
...
...
@@ -11,6 +11,7 @@ export function ControllerTestContext() {
this
.
$element
=
{};
this
.
$sanitize
=
{};
this
.
annotationsSrv
=
{};
this
.
contextSrv
=
{};
this
.
timeSrv
=
new
TimeSrvStub
();
this
.
templateSrv
=
new
TemplateSrvStub
();
this
.
datasourceSrv
=
{
...
...
@@ -27,6 +28,7 @@ export function ControllerTestContext() {
this
.
providePhase
=
function
(
mocks
)
{
return
angularMocks
.
module
(
function
(
$provide
)
{
$provide
.
value
(
'contextSrv'
,
self
.
contextSrv
);
$provide
.
value
(
'datasourceSrv'
,
self
.
datasourceSrv
);
$provide
.
value
(
'annotationsSrv'
,
self
.
annotationsSrv
);
$provide
.
value
(
'timeSrv'
,
self
.
timeSrv
);
...
...
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