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
9e61cacd
Commit
9e61cacd
authored
Oct 08, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: found the unhandled promise issue in the dash import tests
parent
b228c23d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
public/app/features/dashboard/specs/dash_import_ctrl_specs.ts
+4
-2
public/test/index.ts
+1
-1
No files found.
public/app/features/dashboard/specs/dash_import_ctrl_specs.ts
View file @
9e61cacd
...
@@ -53,9 +53,10 @@ describe('DashImportCtrl', function() {
...
@@ -53,9 +53,10 @@ describe('DashImportCtrl', function() {
// setup api mock
// setup api mock
backendSrv
.
get
=
sinon
.
spy
(()
=>
{
backendSrv
.
get
=
sinon
.
spy
(()
=>
{
return
Promise
.
resolve
({
return
Promise
.
resolve
({
json
:
{}
});
});
});
});
ctx
.
ctrl
.
checkGnetDashboard
();
return
ctx
.
ctrl
.
checkGnetDashboard
();
});
});
it
(
'should call gnet api with correct dashboard id'
,
function
()
{
it
(
'should call gnet api with correct dashboard id'
,
function
()
{
...
@@ -69,9 +70,10 @@ describe('DashImportCtrl', function() {
...
@@ -69,9 +70,10 @@ describe('DashImportCtrl', function() {
// setup api mock
// setup api mock
backendSrv
.
get
=
sinon
.
spy
(()
=>
{
backendSrv
.
get
=
sinon
.
spy
(()
=>
{
return
Promise
.
resolve
({
return
Promise
.
resolve
({
json
:
{}
});
});
});
});
ctx
.
ctrl
.
checkGnetDashboard
();
return
ctx
.
ctrl
.
checkGnetDashboard
();
});
});
it
(
'should call gnet api with correct dashboard id'
,
function
()
{
it
(
'should call gnet api with correct dashboard id'
,
function
()
{
...
...
public/test/index.ts
View file @
9e61cacd
...
@@ -21,7 +21,7 @@ angular.module('grafana.directives', []);
...
@@ -21,7 +21,7 @@ angular.module('grafana.directives', []);
angular
.
module
(
'grafana.filters'
,
[]);
angular
.
module
(
'grafana.filters'
,
[]);
angular
.
module
(
'grafana.routes'
,
[
'ngRoute'
]);
angular
.
module
(
'grafana.routes'
,
[
'ngRoute'
]);
const
context
=
(
<
any
>
require
).
context
(
'../'
,
true
,
/specs/
);
const
context
=
(
<
any
>
require
).
context
(
'../'
,
true
,
/specs
\.(
tsx
?
|js
)
/
);
for
(
let
key
of
context
.
keys
())
{
for
(
let
key
of
context
.
keys
())
{
context
(
key
);
context
(
key
);
}
}
...
...
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